FillDerive

Trait FillDerive 

Source
pub trait FillDerive {
    type Args: Parse;

    // Required method
    fn fill(
        self,
        trait_path: &Path,
        portrait: &[TraitItem],
        args: Self::Args,
        input: &DeriveInput,
    ) -> Result<TokenStream>;
}
Expand description

Determines how to derive an impl.

Required Associated Types§

Source

type Args: Parse

The arguments passed to the filler through macros.

Required Methods§

Source

fn fill( self, trait_path: &Path, portrait: &[TraitItem], args: Self::Args, input: &DeriveInput, ) -> Result<TokenStream>

Derives the impl given a portrait of the trait items and the derived item.

Implementors§