Struct shred::Read [] [src]

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

Allows to fetch a resource in a system immutably.

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

Type parameters

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

Trait Implementations

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

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T, F> From<Fetch<'a, T>> for Read<'a, T, F>
[src]

[src]

Performs the conversion.

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

[src]

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

[src]

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

[src]

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

[src]

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

Auto Trait Implementations

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

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