Trait constellation::EntityResource
[−]
[src]
pub trait EntityResource: Resource { type Api; fn deconstruct(&self) -> (&BitSet, &Self::Api); fn deconstruct_mut(&mut self) -> (&BitSet, &mut Self::Api); }
An entity resource is a resource which stores data about entities.
Associated Types
type Api
The type of API used to access the resource while its filter is write-locked behind a borrow.
Required Methods
fn deconstruct(&self) -> (&BitSet, &Self::Api)
Splits the entity resource into a bitset used for entity iteration, and its restricted API.
fn deconstruct_mut(&mut self) -> (&BitSet, &mut Self::Api)
Splits the entity resource into a bitset used for entity iteration, and its restricted API.
Implementors
impl<T: Any + Send + Sync> EntityResource for MapResource<T>
impl<T: Any + Send + Sync> EntityResource for VecResource<T>