[−][src]Struct bevy_hecs::Or
Query transformer performing a logical or on a pair of queries Intended to be used on Mutated or Changed queries.
Example
let mut world = World::new(); world.spawn((123, true, 1., Some(1))); world.spawn((456, false, 2., Some(0))); for mut b in world.query_mut::<Mut<i32>>().skip(1).take(1) { *b += 1; } let components = world .query_mut::<Or<(Mutated<bool>, Mutated<i32>, Mutated<f64>, Mutated<Option<i32>>)>>() .map(|(b, i, f, o)| (*b, *i)) .collect::<Vec<_>>(); assert_eq!(components, &[(false, 457)]);
Trait Implementations
impl<Q1: Query, Q2: Query> Query for Or<(Q1, Q2)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query> Query for Or<(Q1, Q2, Q3)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query> Query for Or<(Q1, Q2, Q3, Q4)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query, Q6: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query, Q6: Query, Q7: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7)>
[src]
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query, Q6: Query, Q7: Query, Q8: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8)>
[src]
type Fetch = FetchOr<(Q1::Fetch, Q2::Fetch, Q3::Fetch, Q4::Fetch, Q5::Fetch, Q6::Fetch, Q7::Fetch, Q8::Fetch)>
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query, Q6: Query, Q7: Query, Q8: Query, Q9: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9)>
[src]
type Fetch = FetchOr<(Q1::Fetch, Q2::Fetch, Q3::Fetch, Q4::Fetch, Q5::Fetch, Q6::Fetch, Q7::Fetch, Q8::Fetch, Q9::Fetch)>
impl<Q1: Query, Q2: Query, Q3: Query, Q4: Query, Q5: Query, Q6: Query, Q7: Query, Q8: Query, Q9: Query, Q10: Query> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10)>
[src]
type Fetch = FetchOr<(Q1::Fetch, Q2::Fetch, Q3::Fetch, Q4::Fetch, Q5::Fetch, Q6::Fetch, Q7::Fetch, Q8::Fetch, Q9::Fetch, Q10::Fetch)>
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch, Q6: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5, Q6)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch, Q6: ReadOnlyFetch, Q7: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch, Q6: ReadOnlyFetch, Q7: ReadOnlyFetch, Q8: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch, Q6: ReadOnlyFetch, Q7: ReadOnlyFetch, Q8: ReadOnlyFetch, Q9: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9)>
[src]
impl<Q1: ReadOnlyFetch, Q2: ReadOnlyFetch, Q3: ReadOnlyFetch, Q4: ReadOnlyFetch, Q5: ReadOnlyFetch, Q6: ReadOnlyFetch, Q7: ReadOnlyFetch, Q8: ReadOnlyFetch, Q9: ReadOnlyFetch, Q10: ReadOnlyFetch> ReadOnlyFetch for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10)>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Or<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Or<T> where
T: Send,
T: Send,
impl<T> Sync for Or<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Or<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Or<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,