Struct shipyard::iterators::ChunkExact8 [−][src]
pub struct ChunkExact8<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> { /* fields omitted */ }
Expand description
Chunk iterator over
8
components.
Returns a tuple of size
long slices and not single elements.
ChunkExact will always return a slice with the same length.
To get the remaining items (if any) use the remainder
method.
Implementations
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> 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> ChunkExact8<A, B, C, D, E, F, G, H>
pub fn remainder(
&mut self
) -> (<A::AbsView as AbstractMut>::Slice, <B::AbsView as AbstractMut>::Slice, <C::AbsView as AbstractMut>::Slice, <D::AbsView as AbstractMut>::Slice, <E::AbsView as AbstractMut>::Slice, <F::AbsView as AbstractMut>::Slice, <G::AbsView as AbstractMut>::Slice, <H::AbsView as AbstractMut>::Slice)
Trait Implementations
impl<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract> IntoIterator 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> IntoIterator 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 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 ChunkExact8<A, B, C, D, E, F, G, H>
type Item = (<A::AbsView as AbstractMut>::Slice, <B::AbsView as AbstractMut>::Slice, <C::AbsView as AbstractMut>::Slice, <D::AbsView as AbstractMut>::Slice, <E::AbsView as AbstractMut>::Slice, <F::AbsView as AbstractMut>::Slice, <G::AbsView as AbstractMut>::Slice, <H::AbsView as AbstractMut>::Slice)
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.