pub trait UnprotectedStorage<T>: TryDefault {
    unsafe fn clean<B>(&mut self, has: B)
    where
        B: BitSetLike
; unsafe fn get(&self, id: Index) -> &T; unsafe fn get_mut(&mut self, id: Index) -> &mut T; unsafe fn insert(&mut self, id: Index, value: T); unsafe fn remove(&mut self, id: Index) -> T; unsafe fn drop(&mut self, id: Index) { ... } }
Expand description

Used by the framework to quickly join components.

Required Methods

Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage.

Tries reading the data associated with an Index. This is unsafe because the external set used to protect this storage is absent.

Tries mutating the data associated with an Index. This is unsafe because the external set used to protect this storage is absent.

Inserts new data for a given Index.

Removes the data associated with an Index.

Provided Methods

Drops the data associated with an Index.

Implementors