pub trait Fill {
    type Args: Parse;

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

Determines how to fill the implementation of a trait.

Required Associated Types§

source

type Args: Parse

The arguments passed to the completer 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§