Struct shipyard::iterators::NonPacked3 [−][src]
pub struct NonPacked3<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> { /* fields omitted */ }
Expand description
Non packed iterator over 3 components.
Trait Implementations
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> From<NonPacked3<A, B, C>> for ParNonPacked3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> From<NonPacked3<A, B, C>> for ParNonPacked3<A, B, C>
Performs the conversion.
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> From<Update3<A, B, C>> for NonPacked3<A, B, C>
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> From<Update3<A, B, C>> for NonPacked3<A, B, C>
type Item = (<A::AbsView as AbstractMut>::Out, <B::AbsView as AbstractMut>::Out, <C::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.
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> UnindexedProducer for NonPacked3<A, B, C> where
A::AbsView: Clone + Send,
B::AbsView: Clone + Send,
C::AbsView: Clone + Send,
<A::AbsView as AbstractMut>::Out: Send,
<B::AbsView as AbstractMut>::Out: Send,
<C::AbsView as AbstractMut>::Out: Send,
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract> UnindexedProducer for NonPacked3<A, B, C> where
A::AbsView: Clone + Send,
B::AbsView: Clone + Send,
C::AbsView: Clone + Send,
<A::AbsView as AbstractMut>::Out: Send,
<B::AbsView as AbstractMut>::Out: Send,
<C::AbsView as AbstractMut>::Out: Send,
The type of item returned by this producer.
Split midway into a new producer if possible, otherwise return None
.