Enum shipyard::iterators::Iter1 [−][src]
Expand description
Iterator over a single component.
Variants
Tuple Fields of Tight
0: Tight1<T>
Tuple Fields of Update
0: Update1<T>
Implementations
Tries to return a chunk iterator over step
component at a time.
If step
doesn’t divide the length perfectly, the last chunk will be smaller.
In case this iterator can’t be turned into a chunk iterator it will be returned.
Tries to return a chunk iterator over step
component at a time.
If step
doesn’t divide the length perfectly, the remaining elements can be fetched with remainder
.
In case this iterator can’t be turned into a chunk iterator it will be returned.
Trait Implementations
type Item = <T::AbsView as AbstractMut>::Out
Returns the minimum number of components yielded and maybe the maximum.
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. Read more
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. Read more
Collects this shiperator into a collection.