[−][src]Struct bevy_ecs::prelude::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>>().iter().skip(1).take(1) { *b += 1; } let components = world .query_mut::<Or<(Mutated<bool>, Mutated<i32>, Mutated<f64>, Mutated<Option<i32>>)>>() .iter() .map(|(b, i, f, o)| (*b, *i)) .collect::<Vec<_>>(); assert_eq!(components, &[(false, 457)]);
Trait Implementations
impl<Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
Q9: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
Q9: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch, <Q6 as Query>::Fetch, <Q7 as Query>::Fetch, <Q8 as Query>::Fetch, <Q9 as Query>::Fetch)>
impl<Q1, Q2> Query for Or<(Q1, Q2)> where
Q1: Query,
Q2: Query,
[src]
Q1: Query,
Q2: Query,
impl<Q1, Q2, Q3, Q4, Q5, Q6> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch, <Q6 as Query>::Fetch)>
impl<Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch, <Q6 as Query>::Fetch, <Q7 as Query>::Fetch, <Q8 as Query>::Fetch)>
impl<Q1, Q2, Q3> Query for Or<(Q1, Q2, Q3)> where
Q1: Query,
Q2: Query,
Q3: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
impl<Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10)> where
Q1: Query,
Q10: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
Q9: Query,
[src]
Q1: Query,
Q10: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
Q8: Query,
Q9: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch, <Q6 as Query>::Fetch, <Q7 as Query>::Fetch, <Q8 as Query>::Fetch, <Q9 as Query>::Fetch, <Q10 as Query>::Fetch)>
impl<Q1, Q2, Q3, Q4, Q5> Query for Or<(Q1, Q2, Q3, Q4, Q5)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch)>
impl<Q1, Q2, Q3, Q4, Q5, Q6, Q7> Query for Or<(Q1, Q2, Q3, Q4, Q5, Q6, Q7)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
Q5: Query,
Q6: Query,
Q7: Query,
type Fetch = FetchOr<(<Q1 as Query>::Fetch, <Q2 as Query>::Fetch, <Q3 as Query>::Fetch, <Q4 as Query>::Fetch, <Q5 as Query>::Fetch, <Q6 as Query>::Fetch, <Q7 as Query>::Fetch)>
impl<Q1, Q2, Q3, Q4> Query for Or<(Q1, Q2, Q3, Q4)> where
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
[src]
Q1: Query,
Q2: Query,
Q3: Query,
Q4: Query,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,