Struct shred::Fetch
[−]
[src]
pub struct Fetch<'a, T: 'a> { /* fields omitted */ }
Return value of Resources::fetch
.
Trait Implementations
impl<'a, T> Deref for Fetch<'a, T> 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> SystemData<'a> for Fetch<'a, T> where
T: Resource,
[src]
T: Resource,
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