Struct shred::Write
[−]
[src]
pub struct Write<'a, T: 'a, F = DefaultProvider> { /* fields omitted */ }
Allows to fetch a resource in a system mutably.
If the resource isn't strictly required, you should use Option<Write<T>>
.
Type parameters
T
: The type of the resourceF
: The setup handler (default:DefaultProvider
)
Trait Implementations
impl<'a, T, F> Deref for Write<'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> DerefMut for Write<'a, T, F> where
T: Resource,
[src]
T: Resource,
impl<'a, T, F> From<FetchMut<'a, T>> for Write<'a, T, F>
[src]
impl<'a, T, F> SystemData<'a> for Write<'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