Function syn_helpers::derive_trait
source · pub fn derive_trait(item: DeriveInput, trait: Trait) -> TokenStream
Expand description
Creates an impl block for the respective trait over the item
Handles a few complex things
- Collisions with the names of generics on the trait and the structure
- Creating where clauses for referenced items