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