pub struct WriteExpect<T: IsResource>(_);
Expand description

A mutably borrowed resource that must be created explicitly.

The created resource should then be added to the world with World::with_resource or World::set_resource.

The resource is automatically sent back to the world on drop.

Trait Implementations

Attempt to construct Self with the given LoanManager.

Return a plugin containing the systems and sub-resources required to create and use the type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

The parallel iterator type that will be created.

The type of item that the parallel iterator will produce.

Converts self into a parallel iterator. Read more

The parallel iterator type that will be created.

The type of item that the parallel iterator will produce.

Converts self into a parallel iterator. 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 type of the parallel iterator that will be returned.

The type of item that the parallel iterator will produce. This will typically be an &'data T reference type. Read more

Converts self into a parallel iterator. Read more

The type of iterator that will be created.

The type of item that will be produced; this is typically an &'data mut T reference. Read more

Creates the parallel iterator from self. Read more

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.