Struct constellation::MapResource [] [src]

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

A MapResource stores per-entity data in a HashMap.

This entity resource is suitable for data which is only present for a small portion of the total entities in the World.

Methods

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

Constructs a new MapResource.

Adds entity data to the resource.

Removes entity data from the resource.

Methods from Deref<Target = MapStorage<T>>

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

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

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

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

Trait Implementations

impl<T: Any + Send + Sync> Resource for MapResource<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 MapResource<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 MapResource<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

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

The method called to mutably dereference a value