FillImpl

Trait FillImpl 

Source
pub trait FillImpl {
    type Args: Parse;

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

Determines how to fill an impl block.

Required Associated Types§

Source

type Args: Parse

The arguments passed to the filler through macros.

Required Methods§

Source

fn fill( self, portrait: &[TraitItem], args: Self::Args, item_impl: &ItemImpl, ) -> Result<TokenStream>

Completes the impl given a portrait of the trait items.

Implementors§