Struct specs::storage::MaskedStorage
[−]
[src]
pub struct MaskedStorage<T: Component> { /* fields omitted */ }
The UnprotectedStorage
together with the BitSet
that knows
about which elements are stored, and which are not.
Methods
impl<T: Component> MaskedStorage<T>
[src]
pub fn new(inner: T::Storage) -> MaskedStorage<T>
[src]
Creates a new MaskedStorage
. This is called when you register
a new component type within the world.
pub fn clear(&mut self)
[src]
Clear the contents of this storage.
pub fn remove(&mut self, id: Index) -> Option<T>
[src]
Remove an element by a given index.
pub fn drop(&mut self, id: Index)
[src]
Drop an element by a given index.
Trait Implementations
impl<T> AnyStorage for MaskedStorage<T> where
T: Component,
[src]
T: Component,
impl<T: Component> Default for MaskedStorage<T> where
T::Storage: Default,
[src]
T::Storage: Default,
impl<T: Component> Drop for MaskedStorage<T>
[src]
Auto Trait Implementations
impl<T> Send for MaskedStorage<T> where
<T as Component>::Storage: Send,
<T as Component>::Storage: Send,
impl<T> Sync for MaskedStorage<T> where
<T as Component>::Storage: Sync,
<T as Component>::Storage: Sync,