GenerateImpl

Trait GenerateImpl 

Source
pub trait GenerateImpl {
    // Required methods
    fn generate_const(
        &mut self,
        ctx: ImplContext<'_>,
        item: &TraitItemConst,
    ) -> Result<ImplItemConst>;
    fn generate_fn(
        &mut self,
        ctx: ImplContext<'_>,
        item: &TraitItemFn,
    ) -> Result<ImplItemFn>;
    fn generate_type(
        &mut self,
        ctx: ImplContext<'_>,
        item: &TraitItemType,
    ) -> Result<ImplItemType>;
}
Expand description

Generates missing items.

Required Methods§

Source

fn generate_const( &mut self, ctx: ImplContext<'_>, item: &TraitItemConst, ) -> Result<ImplItemConst>

Implements an associated constant.

Source

fn generate_fn( &mut self, ctx: ImplContext<'_>, item: &TraitItemFn, ) -> Result<ImplItemFn>

Implements an associated function.

Source

fn generate_type( &mut self, ctx: ImplContext<'_>, item: &TraitItemType, ) -> Result<ImplItemType>

Implements an associated type.

Implementors§