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