Struct specs::Entities
[−]
[src]
pub struct Entities<'a> { /* fields omitted */ }
A custom entity guard used to hide the the fact that Generations is lazily created and updated. For this to be useful it must be joined with a component. This is because the Generation table includes every possible Generation of Entities even if they have never existed.
Trait Implementations
impl<'a> Join for &'a Entities<'a>
[src]
type Type = Entity
Type of joined components.
type Value = Self
Type of joined storages.
type Mask = BitSetOr<&'a BitSet, &'a AtomicBitSet>
Type of joined bit mask.
fn open(self) -> (Self::Mask, Self)
Open this join by returning the mask and the storages.
unsafe fn get(v: &mut Self, idx: Index) -> Entity
Get a joined component value by a given index.
fn join(self) -> JoinIter<Self> where Self: Sized
Create a joined iterator over the contents.