Type Alias shred::WriteExpect
source · pub type WriteExpect<'a, T> = Write<'a, T, PanicHandler>;
Expand description
Allows to fetch a resource in a system mutably.
This will panic if the resource does not exist.
Usage of Write
or Option<Write>
is therefore recommended.
Aliased Type§
struct WriteExpect<'a, T> { /* private fields */ }
Trait Implementations§
source§impl<'a, T, F> SystemData<'a> for Write<'a, T, F>where
T: Resource,
F: SetupHandler<T>,
impl<'a, T, F> SystemData<'a> for Write<'a, T, F>where T: Resource, F: SetupHandler<T>,
source§fn fetch(world: &'a World) -> Self
fn fetch(world: &'a World) -> Self
Fetches the system data from
World
. Note that this is only specified
for one concrete lifetime 'a
, you need to implement the
SystemData
trait for every possible lifetime.