pub struct ResMut<T>(/* private fields */);Expand description
A mutable resource container that mirrors Bevy’s ResMut. It holds an owned write lock on a shared dependency and provides strong typing via Deref/DerefMut.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ResMut<T>
impl<T> !RefUnwindSafe for ResMut<T>
impl<T> Send for ResMut<T>where
T: Send,
impl<T> Sync for ResMut<T>where
T: Sync,
impl<T> Unpin for ResMut<T>where
T: Unpin,
impl<T> !UnwindSafe for ResMut<T>
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