Skip to main content

expand

Function expand 

Source
fn expand(e: &Codegen, func: &ItemFn, trait_impl: TokenStream) -> TokenStream
Expand description

Wraps an arity’s trait impl with the parts every arity shares: the unit-struct definition (unless has_self), the Display impl (unless skip_display), the FuncName impl, and the annotated function itself.