Struct shred::Write [] [src]

pub struct Write<'a, T: 'a, F = DefaultProvider> { /* 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> Deref for Write<'a, T, F> where
    T: Resource
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Mutably dereferences the value.

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

[src]

Performs the conversion.

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

[src]

Sets up Resources for fetching this system data.

[src]

Creates a new resource bundle by fetching the required resources from the [Resources] struct. Read more

[src]

A list of [ResourceId]s the bundle needs read access to in order to build the target resource bundle. Read more

[src]

A list of [ResourceId]s the bundle needs write access to in order to build the target resource bundle. Read more

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