Struct specs::VecStorage [] [src]

pub struct VecStorage<T>(_);

Vector storage. Uses a simple Vec. Supposed to have maximum performance for the components mostly present in entities.

Trait Implementations

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

[src]

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

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

[src]

Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more

Important traits for &'a mut W
[src]

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

Important traits for &'a mut W
[src]

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

[src]

Inserts new data for a given Index.

[src]

Removes the data associated with an Index.

[src]

Drops the data associated with an Index.

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

Auto Trait Implementations

impl<T> Send for VecStorage<T> where
    T: Send

impl<T> Sync for VecStorage<T> where
    T: Sync