pub struct LazyComponents(_);
Expand description

Add components lazily, at the time of your choosing.

Used in instances where you can’t apply changes to Components because of a borrow conflict (eg while iterating over a component query).

Implementations

Inserts the bundled components for the given entity.

Insert a single component for the given entity.

Remove all components of the given entity and return them as a typed bundle.

Remove a single component from the given entity, returning it if the entity had a component of that type.

Apply changes.

Panics

Panics if the application of any changes panic.

Trait Implementations

Returns the “default value” for a type. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.