ide_db::use_trivial_constructor

Function use_trivial_constructor

source
pub fn use_trivial_constructor(
    db: &RootDatabase,
    path: Path,
    ty: &Type,
    edition: Edition,
) -> Option<Expr>
Expand description

given a type return the trivial constructor (if one exists)