pub struct FilteredResourcesMutBuilder<'w> { /* private fields */ }Expand description
Builder struct to define the access for a FilteredResourcesMut.
This is passed to a callback in FilteredResourcesMutParamBuilder.
Implementations§
Source§impl<'w> FilteredResourcesMutBuilder<'w>
impl<'w> FilteredResourcesMutBuilder<'w>
Sourcepub fn add_read_all(&mut self) -> &mut Self
pub fn add_read_all(&mut self) -> &mut Self
Add accesses required to read all resources.
Sourcepub fn add_read<R: Resource>(&mut self) -> &mut Self
pub fn add_read<R: Resource>(&mut self) -> &mut Self
Add accesses required to read the resource of the given type.
Sourcepub fn add_read_by_id(&mut self, component_id: ComponentId) -> &mut Self
pub fn add_read_by_id(&mut self, component_id: ComponentId) -> &mut Self
Add accesses required to read the resource with the given ComponentId.
Sourcepub fn add_write_all(&mut self) -> &mut Self
pub fn add_write_all(&mut self) -> &mut Self
Add accesses required to get mutable access to all resources.
Sourcepub fn add_write<R: Resource>(&mut self) -> &mut Self
pub fn add_write<R: Resource>(&mut self) -> &mut Self
Add accesses required to get mutable access to the resource of the given type.
Sourcepub fn add_write_by_id(&mut self, component_id: ComponentId) -> &mut Self
pub fn add_write_by_id(&mut self, component_id: ComponentId) -> &mut Self
Add accesses required to get mutable access to the resource with the given ComponentId.
Auto Trait Implementations§
impl<'w> Freeze for FilteredResourcesMutBuilder<'w>
impl<'w> !RefUnwindSafe for FilteredResourcesMutBuilder<'w>
impl<'w> Send for FilteredResourcesMutBuilder<'w>
impl<'w> Sync for FilteredResourcesMutBuilder<'w>
impl<'w> Unpin for FilteredResourcesMutBuilder<'w>
impl<'w> !UnwindSafe for FilteredResourcesMutBuilder<'w>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.