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)