pub struct ResMut<'resources, T: ?Sized + 'static, Tag: 'static = DefaultResourceTag> { /* private fields */ }Expand description
Exclusive view of one resource.
The resource type and optional tag identify the required capability in a
command signature. ResMut is a transparent borrowing wrapper and
allocates no memory.
Implementations§
Source§impl<'resources, T, Tag> ResMut<'resources, T, Tag>where
T: ?Sized + 'static,
Tag: 'static,
impl<'resources, T, Tag> ResMut<'resources, T, Tag>where
T: ?Sized + 'static,
Tag: 'static,
Sourcepub fn into_inner(self) -> &'resources mut T
pub fn into_inner(self) -> &'resources mut T
Returns the wrapped exclusive reference.
Trait Implementations§
Source§impl<'param, R, T, Tag> SystemParam<R> for ResMut<'param, T, Tag>where
R: ResourceProvider<T, Tag>,
T: 'static,
Tag: 'static,
impl<'param, R, T, Tag> SystemParam<R> for ResMut<'param, T, Tag>where
R: ResourceProvider<T, Tag>,
T: 'static,
Tag: 'static,
Auto Trait Implementations§
impl<'resources, T, Tag = DefaultResourceTag> !UnwindSafe for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> Freeze for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> RefUnwindSafe for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> Send for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> Sync for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> Unpin for ResMut<'resources, T, Tag>
impl<'resources, T, Tag> UnsafeUnpin for ResMut<'resources, T, Tag>
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