pub trait IntoWithId {
    fn with_id(self) -> WithId<Self>Notable traits for WithId<I>impl<I: Iterator + LastId> Iterator for WithId<I>    type Item = (EntityId, <I as Iterator>::Item);impl<'a, T> Iterator for WithId<SparseSetDrain<'a, T>>    type Item = (EntityId, T);
    where
        Self: Sized
; fn ids(
        self
    ) -> Map<WithId<Self>, fn(_: <WithId<Self> as Iterator>::Item) -> EntityId>
    where
        Self: Sized + Iterator,
        WithId<Self>: Iterator<Item = (EntityId, <Self as Iterator>::Item)>
; }
Expand description

Creates iterator returning EntityId.

Required Methods

Makes the iterator return the EntityId in addition to the component.

Makes the iterator only return the EntityId of each component.

Implementors