Skip to main content

ItemGen

Trait ItemGen 

Source
pub trait ItemGen: Sealed {
    // Required method
    fn to_rust(
        &self,
        ctx: ItemContext<'_>,
    ) -> Result<TokenStream, Box<dyn Error + 'static>>;
}

Required Methods§

Source

fn to_rust( &self, ctx: ItemContext<'_>, ) -> Result<TokenStream, Box<dyn Error + 'static>>

Implementations on Foreign Types§

Source§

impl ItemGen for Item

Source§

fn to_rust( &self, ctx: ItemContext<'_>, ) -> Result<TokenStream, Box<dyn Error + 'static>>

Implementors§