StateSyncMutableInsert

Trait StateSyncMutableInsert 

Source
pub trait StateSyncMutableInsert: State {
    // Required methods
    fn insert<T: 'static + Send + Sync>(&mut self, data: T);
    fn remove<T: 'static + Send + Sync>(&mut self);
}
Expand description

Insert and remove data (sync mutable version)

Required Methods§

Source

fn insert<T: 'static + Send + Sync>(&mut self, data: T)

Inserts data as data of type T

Source

fn remove<T: 'static + Send + Sync>(&mut self)

Removes data of type T

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§