Function syn_helpers::build_implementation_over_structure[][src]

pub fn build_implementation_over_structure<'a>(
    structure: &'a DeriveInput,
    implementing_trait: Trait,
    structure_handler: impl Fn(String, &'a DeriveInput) -> Result<PrefixAndPostfix<Stmt>, Box<dyn Error>>,
    field_handler: impl for<'b> Fn(String, &'b mut Fields<'a>) -> Result<Vec<Stmt>, Box<dyn Error>>
) -> TokenStream
Expand description

Generates implementation for a trait over a structure