pub trait SystemModuleApi {
type SystemCallback: SystemCallbackObject;
// Required methods
fn system(&mut self) -> &mut System<Self::SystemCallback>;
fn system_state(&mut self) -> SystemState<'_, System<Self::SystemCallback>>;
fn current_stack_depth_uncosted(&self) -> usize;
fn current_stack_id_uncosted(&self) -> usize;
}Required Associated Types§
Required Methods§
fn system(&mut self) -> &mut System<Self::SystemCallback>
fn system_state(&mut self) -> SystemState<'_, System<Self::SystemCallback>>
fn current_stack_depth_uncosted(&self) -> usize
fn current_stack_id_uncosted(&self) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".