pub struct FetchWrite<T>(/* private fields */);
Trait Implementations§
Source§impl<T> Default for FetchWrite<T>
impl<T> Default for FetchWrite<T>
Source§impl<'a, T: Component> Fetch<'a> for FetchWrite<T>
impl<'a, T: Component> Fetch<'a> for FetchWrite<T>
type Output = &'a mut T
type WorldBorrows = BorrowMut<'a, T>
type DirectBorrows = BorrowMut<'a, T>
unsafe fn borrow_world(&self, world: &'a World) -> Option<Self::WorldBorrows>
unsafe fn get_world( &self, borrows: &Self::WorldBorrows, id: Id, ) -> Option<&'a mut T>
unsafe fn borrow_direct( &self, entity: &'a Entity, ) -> Option<Self::DirectBorrows>
unsafe fn get(&self, borrows: &Self::DirectBorrows) -> &'a mut T
Auto Trait Implementations§
impl<T> Freeze for FetchWrite<T>
impl<T> RefUnwindSafe for FetchWrite<T>where
T: RefUnwindSafe,
impl<T> Send for FetchWrite<T>where
T: Send,
impl<T> Sync for FetchWrite<T>where
T: Sync,
impl<T> Unpin for FetchWrite<T>where
T: Unpin,
impl<T> UnwindSafe for FetchWrite<T>where
T: 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