Struct amethyst::shred::Fetch [−]
pub struct Fetch<'a, T> where
T: 'a, { /* fields omitted */ }Allows to fetch a resource in a system immutably.
If the resource isn't strictly required, you should use Option<Fetch<T>>.
Type parameters
T: The type of the resource
Trait Implementations
impl<'a, T> Deref for Fetch<'a, T> where
T: Resource,
impl<'a, T> Deref for Fetch<'a, T> where
T: Resource, type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T
ⓘImportant traits for &'a mut R
fn deref(&self) -> &TDereferences the value.
impl<'a, T, F> From<Fetch<'a, T>> for Read<'a, T, F>
impl<'a, T, F> From<Fetch<'a, T>> for Read<'a, T, F>