Skip to main content

ModuleGen

Trait ModuleGen 

Source
pub trait ModuleGen: Sealed {
    // Required method
    fn to_rust(
        &self,
        thecrate: &TokenStream,
        package: Option<&LiteralString>,
        address_map: &HashMap<Ident, TokenStream>,
    ) -> Result<TokenStream, Box<dyn Error + 'static>>;
}

Required Methods§

Source

fn to_rust( &self, thecrate: &TokenStream, package: Option<&LiteralString>, address_map: &HashMap<Ident, TokenStream>, ) -> Result<TokenStream, Box<dyn Error + 'static>>

Implementations on Foreign Types§

Source§

impl ModuleGen for Module

Source§

fn to_rust( &self, thecrate: &TokenStream, package: Option<&LiteralString>, address_map: &HashMap<Ident, TokenStream>, ) -> Result<TokenStream, Box<dyn Error + 'static>>

Implementors§