Skip to main content

type_to_arg_expr

Function type_to_arg_expr 

Source
fn type_to_arg_expr(ty: Type) -> Expr
Expand description

Convert a parsed argument Type back into the Expr form expected by the property builder: plain paths stay Expr::Path, everything else (generics, arrays, tuples, references) becomes Expr::Verbatim.