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