Trait abi_stable::library::IntoRootModuleResult
source · 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