pub trait TypeModuleImpl: ObjectImpl + ObjectSubclass<Type: IsA<Object> + IsA<TypeModule>> {
// Required methods
fn load(&self) -> bool;
fn unload(&self);
}
Required Methods§
Sourcefn load(&self) -> bool
fn load(&self) -> bool
Loads the module, registers one or more object subclasses using
register_dynamic_type
and registers one or more object interfaces
using register_dynamic_interface
(see TypeModule
).
loads the module and registers one or more types using
[TypeModuleExtManual::register_type()
][crate::prelude::TypeModuleExtManual::register_type()].
Sourcefn unload(&self)
fn unload(&self)
Unloads the module (see TypeModuleExt::unuse
).
unloads the module
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.