Struct specs::Write[][src]

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

  • T: The type of the resource
  • F: The setup handler (default: DefaultProvider)

Trait Implementations

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

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
[src]

Important traits for &'a mut R

Mutably dereferences the value.

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

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>
[src]

Performs the conversion.

impl<'a, 'b, T> Join for &'a mut Write<'b, T> where
    &'a mut T: Join,
    T: Resource
[src]

Type of joined components.

Type of joined storages.

Type of joined bit mask.

Open this join by returning the mask and the storages. Read more

Get a joined component value by a given index.

If this Join typically returns all indices in the mask, then iterating over only it or combined with other joins that are also dangerous will cause the JoinIter/ParJoin to go through all indices which is usually not what is wanted and will kill performance. Read more

Important traits for JoinIter<J>

Create a joined iterator over the contents.

Returns a Join-able structure that yields all indices, returning None for all missing elements and Some(T) for found elements. Read more

impl<'a, 'b, T> ParJoin for &'a mut Write<'b, T> where
    &'a mut T: ParJoin,
    T: Resource
[src]

Create a joined parallel iterator over the contents.

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