pub struct Or<A, B>(pub A, pub B);
Tuple Fields§
§0: A
§1: B
Trait Implementations§
Source§impl<'a, A: Fetch<'a, Output = bool>, B: Fetch<'a, Output = bool>> Fetch<'a> for Or<A, B>
impl<'a, A: Fetch<'a, Output = bool>, B: Fetch<'a, Output = bool>> Fetch<'a> for Or<A, B>
type Output = bool
type WorldBorrows = (<A as Fetch<'a>>::WorldBorrows, <B as Fetch<'a>>::WorldBorrows)
type DirectBorrows = (<A as Fetch<'a>>::DirectBorrows, <B as Fetch<'a>>::DirectBorrows)
unsafe fn borrow_world(&self, world: &'a World) -> Option<Self::WorldBorrows>
unsafe fn get_world( &self, borrows: &Self::WorldBorrows, id: Id, ) -> Option<Self::Output>
unsafe fn borrow_direct( &self, entity: &'a Entity, ) -> Option<Self::DirectBorrows>
unsafe fn get(&self, borrows: &Self::DirectBorrows) -> Self::Output
Auto Trait Implementations§
impl<A, B> Freeze for Or<A, B>
impl<A, B> RefUnwindSafe for Or<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Or<A, B>
impl<A, B> Sync for Or<A, B>
impl<A, B> Unpin for Or<A, B>
impl<A, B> UnwindSafe for Or<A, B>where
A: UnwindSafe,
B: 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