Struct specs_mirror::MirroredStorage [−][src]
pub struct MirroredStorage<C: Mirrored, S = DenseVecStorage<C>> { /* fields omitted */ }
A specs
storage intended for synchronisation with external libraries.
Trait Implementations
impl<C: Mirrored, S> Default for MirroredStorage<C, S> where
S: TryDefault,
[src]
impl<C: Mirrored, S> Default for MirroredStorage<C, S> where
S: TryDefault,
impl<C, S> UnprotectedStorage<C> for MirroredStorage<C, S> where
C: Mirrored + Component,
S: UnprotectedStorage<C>,
[src]
impl<C, S> UnprotectedStorage<C> for MirroredStorage<C, S> where
C: Mirrored + Component,
S: UnprotectedStorage<C>,
unsafe fn clean<B>(&mut self, has: B) where
B: BitSetLike,
[src]
unsafe fn clean<B>(&mut self, has: B) where
B: BitSetLike,
Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more
unsafe fn get(&self, id: Index) -> &C
[src]
unsafe fn get(&self, id: Index) -> &C
Tries reading the data associated with an Index
. This is unsafe because the external set used to protect this storage is absent. Read more
unsafe fn get_mut(&mut self, id: Index) -> &mut C
[src]
unsafe fn get_mut(&mut self, id: Index) -> &mut C
Tries mutating the data associated with an Index
. This is unsafe because the external set used to protect this storage is absent. Read more
unsafe fn insert(&mut self, id: Index, comp: C)
[src]
unsafe fn insert(&mut self, id: Index, comp: C)
Inserts new data for a given Index
.
unsafe fn remove(&mut self, id: Index) -> C
[src]
unsafe fn remove(&mut self, id: Index) -> C
Removes the data associated with an Index
.
unsafe fn drop(&mut self, id: u32)
[src]
unsafe fn drop(&mut self, id: u32)
Drops the data associated with an Index
.