[][src]Struct specs::storage::MaskedStorage

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]

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

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

Auto Trait Implementations

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

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> Unpin for MaskedStorage<T> where
    <T as Component>::Storage: Unpin

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> TryDefault for T where
    T: Default
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,