Struct bones_render::prelude::Res

source ·
pub struct Res<'a, T>(_)
where
    T: TypedEcsData + Default
;
Expand description

SystemParam for getting read access to a resource.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
The intermediate state for the parameter, that may be extracted from the world.
The type of the parameter, ranging over the lifetime of the intermediate state. Read more
This will be called to give the parameter a chance to initialize it’s world storage. Read more
This is called to produce the intermediate state of the system parameter. Read more
This is used create an instance of the system parame, possibly borrowed from the intermediate parameter state.

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 returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.