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§
fn to_rust( &self, thecrate: &TokenStream, package: Option<&LiteralString>, address_map: &HashMap<Ident, TokenStream>, ) -> Result<TokenStream, Box<dyn Error + 'static>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".