Struct shipyard::WithId[][src]

pub struct WithId<I> { /* fields omitted */ }
Expand description

Shiperator yielding EntityId as well.

Trait Implementations

Safety Read more

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

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.