Struct constellation::VecResource [] [src]

pub struct VecResource<T: Any + Send + Sync> { /* fields omitted */ }

A VecResource stores per-entity data in a Vec.

This entity resource is suitable for data which is present for almost all of the total entities in the World. The VecResource provides fast sequential access as long as it maintains high occupancy.

Methods

impl<T: Any + Send + Sync> VecResource<T>
[src]

Constructs a new VecResource.

Adds entity data to the resource.

Removes entity data from the resource.

Methods from Deref<Target = VecStorage<T>>

Gets an iterator over immutable references to all entity data stored in the resource.

Gets an iterator over mutable references to all entity data stored in the resource.

Trait Implementations

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

Clears all data related to the given entities from the resource.

Converts this resource into a ResourceBuilder for constructing itself.

impl<T: Any + Send + Sync> EntityResource for VecResource<T>
[src]

The type of API used to access the resource while its filter is write-locked behind a borrow. Read more

Splits the entity resource into a bitset used for entity iteration, and its restricted API. Read more

Splits the entity resource into a bitset used for entity iteration, and its restricted API. Read more

impl<T: Any + Send + Sync> Deref for VecResource<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T: Any + Send + Sync> DerefMut for VecResource<T>
[src]

The method called to mutably dereference a value