Struct specs::VecStorage [] [src]

pub struct VecStorage<T>(_);

Vec-based storage, stores the generations of the data in order to match with given entities. Supposed to have maximum performance for the components mostly present in entities.

Trait Implementations

impl<T> UnprotectedStorage<T> for VecStorage<T>
[src]

Creates a new Storage<T>. This is called when you register a new component type within the world. Read more

Clean the storage given a check to figure out if an index is valid or not. Allows us to safely drop the storage. Read more

Tries reading the data associated with an Index. This is unsafe because the external set used to protect this storage is absent. Read more

Tries mutating the data associated with an Index. This is unsafe because the external set used to protect this storage is absent. Read more

Inserts new data for a given Index.

Removes the data associated with an Index.