pub struct And<L, R> { /* private fields */ }Expand description
And filter combinator
Implementations
Trait Implementations
sourceimpl<R, A: ComponentValue, B: ComponentValue> BitAnd<R> for And<A, B>
impl<R, A: ComponentValue, B: ComponentValue> BitAnd<R> for And<A, B>
sourceimpl<R, A: ComponentValue, B: ComponentValue> BitOr<R> for And<A, B>
impl<R, A: ComponentValue, B: ComponentValue> BitOr<R> for And<A, B>
sourceimpl<'a, L, R> Filter<'a> for And<L, R>where
L: Filter<'a>,
R: Filter<'a>,
impl<'a, L, R> Filter<'a> for And<L, R>where
L: Filter<'a>,
R: Filter<'a>,
type Prepared = PreparedAnd<<L as Filter<'a>>::Prepared, <R as Filter<'a>>::Prepared>
type Prepared = PreparedAnd<<L as Filter<'a>>::Prepared, <R as Filter<'a>>::Prepared>
The filter holding possible borrows
sourcefn prepare(&'a self, archetype: &'a Archetype, change_tick: u32) -> Self::Prepared
fn prepare(&'a self, archetype: &'a Archetype, change_tick: u32) -> Self::Prepared
Prepare the filter for an archetype.
change_tick refers to the last time this query was run. Useful for
change detection. Read more
sourceimpl<A: ComponentValue, B: ComponentValue> Neg for And<A, B>
impl<A: ComponentValue, B: ComponentValue> Neg for And<A, B>
sourceimpl<L, R> StaticFilter for And<L, R>where
L: StaticFilter,
R: StaticFilter,
impl<L, R> StaticFilter for And<L, R>where
L: StaticFilter,
R: StaticFilter,
sourcefn static_matches(&self, archetype: &Archetype) -> bool
fn static_matches(&self, archetype: &Archetype) -> bool
Returns true if the filter matches the archetype without state
Auto Trait Implementations
impl<L, R> RefUnwindSafe for And<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for And<L, R>where
L: Send,
R: Send,
impl<L, R> Sync for And<L, R>where
L: Sync,
R: Sync,
impl<L, R> Unpin for And<L, R>where
L: Unpin,
R: Unpin,
impl<L, R> UnwindSafe for And<L, R>where
L: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more