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 resourceF: The setup handler (default:DefaultProvider)
Trait Implementations
impl<'a, T, F> Deref for Read<'a, T, F> where
T: Resource, [src]
T: Resource,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T[src]
Dereferences the value.
impl<'a, T, F> From<Fetch<'a, T>> for Read<'a, T, F>[src]
impl<'a, T, F> SystemData<'a> for Read<'a, T, F> where
T: Resource,
F: SetupHandler<T>, [src]
T: Resource,
F: SetupHandler<T>,
fn setup(res: &mut Resources)[src]
Sets up Resources for fetching this system data.
fn fetch(res: &'a Resources) -> Self[src]
Creates a new resource bundle by fetching the required resources from the [Resources] struct. Read more
fn reads() -> Vec<ResourceId>[src]
A list of [ResourceId]s the bundle needs read access to in order to build the target resource bundle. Read more
fn writes() -> Vec<ResourceId>[src]
A list of [ResourceId]s the bundle needs write access to in order to build the target resource bundle. Read more