Struct amethyst::ecs::prelude::Write[]

pub struct Write<'a, T, F = DefaultProvider> where
    T: 'a, 
{ /* fields omitted */ }

Allows to fetch a resource in a system mutably.

If the resource isn't strictly required, you should use Option<Write<T>>.

Type parameters

Trait Implementations

impl<'a, T, F> Deref for Write<'a, T, F> where
    T: Resource

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<'a, T, F> From<FetchMut<'a, T>> for Write<'a, T, F>

Performs the conversion.

impl<'a, T, F> SystemData<'a> for Write<'a, T, F> where
    F: SetupHandler<T>,
    T: Resource

Sets up the system data for fetching it from the Resources.

Fetches the system data from Resources. Note that this is only specified for one concrete lifetime 'a, you need to implement the SystemData trait for every possible lifetime. Read more

Important traits for Vec<u8>

Returns all read dependencies as fetched from Self::fetch. Read more

Important traits for Vec<u8>

Returns all write dependencies as fetched from Self::fetch. Read more

impl<'a, T, F> DerefMut for Write<'a, T, F> where
    T: Resource

Important traits for &'a mut R

Mutably dereferences the value.

Auto Trait Implementations

impl<'a, T, F> Send for Write<'a, T, F> where
    F: Send,
    T: Send

impl<'a, T, F> Sync for Write<'a, T, F> where
    F: Sync,
    T: Sync