Struct specs::Entities [] [src]

pub struct Entities<'a> {
    // some 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 been

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 gien index.

fn iter(self) -> JoinIter<Self> where Self: Sized

Create a joined iterator over the contents.