Trait shipyard::IntoWithId[][src]

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::Item)>
; }

Creates iterator returning EntityId.

Required methods

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
[src]

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

fn ids(
    self
) -> Map<WithId<Self>, fn(_: <WithId<Self> as Iterator>::Item) -> EntityId> where
    Self: Sized + Iterator,
    WithId<Self>: Iterator<Item = (EntityId, Self::Item)>, 
[src]

Makes the iterator only return the EntityId of each component.

Loading content...

Implementors

impl<I> IntoWithId for I where
    I: Iterator,
    WithId<I>: Iterator<Item = (EntityId, Self::Item)>, 
[src]

Loading content...