pub struct ResMut<'a, T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a, T: 'static> WorldQuery<'a> for ResMut<'a, T>
impl<'a, T: 'static> WorldQuery<'a> for ResMut<'a, T>
fn new(db: &'a World, _system_idx: usize) -> Self
Source§fn resources_mut(set: &mut HashSet<TypeId>)
fn resources_mut(set: &mut HashSet<TypeId>)
List of resource types this query needs exclusive access to
Source§fn resources_const(set: &mut HashSet<TypeId>)
fn resources_const(set: &mut HashSet<TypeId>)
List of resource types this query needs
Source§fn components_mut(_set: &mut HashSet<TypeId>)
fn components_mut(_set: &mut HashSet<TypeId>)
List of component types this query needs exclusive access to
Source§fn components_const(_set: &mut HashSet<TypeId>)
fn components_const(_set: &mut HashSet<TypeId>)
List of component types this query needs
fn read_only() -> bool
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for ResMut<'a, T>
impl<'a, T> Freeze for ResMut<'a, T>
impl<'a, T> RefUnwindSafe for ResMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ResMut<'a, T>where
T: Send,
impl<'a, T> Sync for ResMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for ResMut<'a, T>
impl<'a, T> UnsafeUnpin for ResMut<'a, 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