Struct specs::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]
fn new() -> MaskedStorage<T>
[src]
Creates a new MaskedStorage
. This is called when you register
a new component type within the world.
fn clear(&mut self)
[src]
Clear the contents of this storage.
fn remove(&mut self, id: Index) -> Option<T>
[src]
Remove an element by a given index.