Function ide_db::use_trivial_constructor::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)