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)
pub fn use_trivial_constructor(
db: &RootDatabase,
path: Path,
ty: &Type,
edition: Edition,
) -> Option<Expr>
given a type return the trivial constructor (if one exists)