pub struct ResMut<T: Resource> { /* private fields */ }Implementations§
Trait Implementations§
impl<T: Copy + Resource> Copy for ResMut<T>
Source§impl<T: Resource> SystemParam for ResMut<T>
impl<T: Resource> SystemParam for ResMut<T>
type State = ()
type Item<'world> = ResMut<T>
fn init_state( world: &mut World, desc: &mut SystemDescBuilder, ) -> Result<Self::State, ParamError>
unsafe fn get_param<'world>( _state: &'world mut Self::State, ctx: SystemContext<'world>, ) -> Self::Item<'world>
const NEEDS_DEFER: bool = false
Auto Trait Implementations§
impl<T> !Send for ResMut<T>
impl<T> !Sync for ResMut<T>
impl<T> Freeze for ResMut<T>
impl<T> RefUnwindSafe for ResMut<T>where
T: RefUnwindSafe,
impl<T> Unpin for ResMut<T>where
T: Unpin,
impl<T> UnsafeUnpin for ResMut<T>
impl<T> UnwindSafe for ResMut<T>where
T: RefUnwindSafe + UnwindSafe,
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