pub trait Module: DynModule {
type Instance: ModuleInstance;
type InitialInstances<'a>: IntoIterator<Item = Self::Instance> + 'a;
// Required methods
fn initial_instances(&mut self) -> Self::InitialInstances<'_>;
fn info(&self) -> Arc<ModuleInfo>;
fn create_instance(&self) -> Self::Instance;
}Required Associated Types§
type Instance: ModuleInstance
type InitialInstances<'a>: IntoIterator<Item = Self::Instance> + 'a
Required Methods§
fn initial_instances(&mut self) -> Self::InitialInstances<'_>
fn info(&self) -> Arc<ModuleInfo>
fn create_instance(&self) -> Self::Instance
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.