MutableComponentRegistry

Trait MutableComponentRegistry 

Source
pub trait MutableComponentRegistry: ComponentRegistry {
    // Required method
    fn add_component<C>(&mut self, component: C) -> &mut Self
       where C: Clone + Any + Send + Sync;
}
Expand description

Mutable Component Registry

Required Methods§

Source

fn add_component<C>(&mut self, component: C) -> &mut Self
where C: Clone + Any + Send + Sync,

Add component to the registry

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.

Implementors§