Struct specs::MaskedStorage [] [src]

pub struct MaskedStorage<T: Component> {
    // some 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>

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

fn clear(&mut self)

Clear the contents of this storage.

fn remove(&mut self, id: Index) -> Option<T>

Remove an element by a given index.

Trait Implementations

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

fn drop(&mut self)

A method called when the value goes out of scope. Read more