Struct shipyard::iterators::Loose9[][src]

pub struct Loose9<A: IntoAbstract, B: IntoAbstract, C: IntoAbstract, D: IntoAbstract, E: IntoAbstract, F: IntoAbstract, G: IntoAbstract, H: IntoAbstract, I: IntoAbstract> { /* fields omitted */ }
Expand description

Loose iterator over 9 components.

Trait Implementations

Safety Read more

Returns the number of components this shiperator will yield.

Performs the conversion.

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

The type of item that will be produced by this producer once it is converted into an iterator. Read more

The type of iterator we will become.

Convert self into an iterator; at this point, no more parallel splits are possible. Read more

Split into two producers; one produces items 0..index, the other index..N. Index must be less than or equal to N. Read more

The minimum number of items that we will process sequentially. Defaults to 1, which means that we will split all the way down to a single item. This can be raised higher using the with_min_len method, which will force us to create sequential tasks at a larger granularity. Note that Rayon automatically normally attempts to adjust the size of parallel splits to reduce overhead, so this should not be needed. Read more

The maximum number of items that we will process sequentially. Defaults to MAX, which means that we can choose not to split at all. This can be lowered using the with_max_len method, which will force us to create more parallel tasks. Note that Rayon automatically normally attempts to adjust the size of parallel splits to reduce overhead, so this should not be needed. Read more

Iterate the producer, feeding each element to folder, and stop when the folder is full (or all elements have been consumed). Read more

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. 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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.