pub trait IntoRootModuleResult {
type Module: RootModule;
// Required method
fn into_root_module_result(self) -> Result<Self::Module, RootModuleError>;
}Expand description
For converting the return value of a #[export_root_module] function
to a Result<_, RootModuleError>.
Required Associated Types§
Sourcetype Module: RootModule
type Module: RootModule
The module that is loaded in the success case.
Required Methods§
Sourcefn into_root_module_result(self) -> Result<Self::Module, RootModuleError>
fn into_root_module_result(self) -> Result<Self::Module, RootModuleError>
Performs the conversion