Struct shipyard::iterators::Update4 [−][src]
pub struct Update4<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> { /* fields omitted */ }
Expand description
Update iterator over 4 components.
Trait Implementations
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> From<Update4<A, B, C, D>> for NonPacked4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> From<Update4<A, B, C, D>> for NonPacked4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> From<Update4<A, B, C, D>> for ParNonPacked4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> From<Update4<A, B, C, D>> for ParNonPacked4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> IntoIterator for Update4<A, B, C, D>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract> IntoIterator for Update4<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> Shiperator for Update4<A, B, C, D>
type Item = (<A::AbsView as AbstractMut>::Out, <B::AbsView as AbstractMut>::Out, <C::AbsView as AbstractMut>::Out, <D::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.