Struct specs::Fetch
[−]
[src]
pub struct Fetch<'a, T> where
T: 'a, { /* fields omitted */ }
Return value of Resources::fetch
.
Trait Implementations
impl<'a, T> SystemData<'a> for Fetch<'a, T> where
T: Resource,
[src]
T: Resource,
fn fetch(res: &'a Resources, id: usize) -> Fetch<'a, T>
Creates a new resource bundle by fetching the required resources from the [Resources
] struct. Read more
fn reads(id: usize) -> Vec<ResourceId>
A list of [ResourceId
]s the bundle needs read access to in order to build the target resource bundle. Read more
fn writes(usize) -> Vec<ResourceId>
A list of [ResourceId
]s the bundle needs write access to in order to build the target resource bundle. Read more
impl<'a, T> Deref for Fetch<'a, T> where
T: Resource,
[src]
T: Resource,