pub trait Shiperator {
type Item;
Show 14 methods
fn size_hint(&self) -> (usize, Option<usize>);
fn next(&mut self) -> Option<Self::Item> { ... }
fn for_each<F>(self, f: F)
where
Self: Sized,
F: FnMut(Self::Item),
{ ... }
fn try_for_each<F, E>(&mut self, f: F) -> Result<(), E>
where
Self: Sized,
F: FnMut(Self::Item) -> Result<(), E>,
{ ... }
fn fold<Acc, F>(self, acc: Acc, f: F) -> Acc
where
Self: Sized,
F: FnMut(Acc, Self::Item) -> Acc,
{ ... }
fn try_fold<Acc, F, E>(&mut self, acc: Acc, f: F) -> Result<Acc, E>
where
Self: Sized,
F: FnMut(Acc, Self::Item) -> Result<Acc, E>,
{ ... }
fn enumerate(self) -> Enumerate<Self>
where
Self: Sized,
{ ... }
fn with_id(self) -> WithId<Self>
where
Self: Sized + CurrentId,
{ ... }
fn filter<P>(self, pred: P) -> Filter<Self, P>
where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
{ ... }
fn count(self) -> usize
where
Self: Sized,
{ ... }
fn map<R, F>(self, f: F) -> Map<Self, F>
where
Self: Sized,
F: FnMut(Self::Item) -> R,
{ ... }
fn find<P>(&mut self, pred: P) -> Option<Self::Item>
where
Self: Sized,
P: FnMut(&Self::Item) -> bool,
{ ... }
fn into_iterator(self) -> IntoIterator<Self>
where
Self: Sized,
{ ... }
fn collect<C: FromIterator<Self::Item>>(self) -> C
where
Self: Sized,
{ ... }
}
Expand description
Iterator-like trait able to make the difference between visited and yielded components.
Returns the minimum number of components yielded and maybe the maximum.
Returns the next component.
Visits all components and apply f
.
Visits all components and apply f
, can return early.
Visits all components, apply f
and store the result in acc
.
Visits all components, apply f
and store the result in acc
, can return early.
Returns the current iteration count as well as component(s).
Returns EntityId
as well as component(s).
Skips components that doesn’t match pred
.
Consumes the shiperator and counts the number of iterations.
Applies f
to all visited components.
Using it on an update packed storages will flag entities even if they’re not yielded at the end.
Searches component(s) that matches pred
.
Transforms a shiperator into an iterator, allowing the use of for loop and crates such as itertools.
Iterator doesn’t know about update pack so it’ll flag everything it visits.
Collects this shiperator into a collection.
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> Shiperator for Iter3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> Shiperator for Chunk3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> Shiperator for Loose3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> Shiperator for Tight3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> Shiperator for Update3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for Iter4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for Chunk4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for ChunkExact4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for Loose4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for NonPacked4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for Tight4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> Shiperator for Update4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for Iter5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for Chunk5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for ChunkExact5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for Loose5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for NonPacked5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for Tight5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract> Shiperator for Update5<A, B, C, D, E>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for Iter6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for Chunk6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for ChunkExact6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for Loose6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for NonPacked6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for Tight6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract> Shiperator for Update6<A, B, C, D, E, F>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for Iter7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for Chunk7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for ChunkExact7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for Loose7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for NonPacked7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for Tight7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract> Shiperator for Update7<A, B, C, D, E, F, G>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for Iter8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for Chunk8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for ChunkExact8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for Loose8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for NonPacked8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for Tight8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> Shiperator for Update8<A, B, C, D, E, F, G, H>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for Iter9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for Chunk9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for ChunkExact9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for Loose9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for NonPacked9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for Tight9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> Shiperator for Update9<A, B, C, D, E, F, G, H, I>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for Iter10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for Chunk10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for ChunkExact10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for Loose10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for NonPacked10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for Tight10<A, B, C, D, E, F, G, H, I, J>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract, J: IntoAbstract> Shiperator for Update10<A, B, C, D, E, F, G, H, I, J>