Function ide_db::use_trivial_constructor::use_trivial_constructor
source · pub fn use_trivial_constructor(
db: &RootDatabase,
path: Path,
ty: &Type
) -> Option<Expr>
Expand description
given a type return the trivial constructor (if one exists)