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]

Creates a new MaskedStorage. This is called when you register a new component type within the world.

Clear the contents of this storage.

Remove an element by a given index.

Drop an element by a given index.

Trait Implementations

impl<T> AnyStorage for MaskedStorage<T> where
    T: Component
[src]

Drop components of given entities.

impl<T: Component> Default for MaskedStorage<T> where
    T::Storage: Default
[src]

Returns the "default value" for a type. Read more

impl<T: Component> Drop for MaskedStorage<T>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> Send for MaskedStorage<T> where
    <T as Component>::Storage: Send

impl<T> Sync for MaskedStorage<T> where
    <T as Component>::Storage: Sync