pub struct All<'s, Tuple>(pub PhantomData<&'s Tuple>);Expand description
Is satisfied when a storages contains all of the specified components.
ⓘ
type Query = All<(Write<Position>, Read<Velocity>)>;Tuple Fields§
§0: PhantomData<&'s Tuple>Trait Implementations§
Source§impl<'s, A, B, C, D> Matcher for All<'s, (A, B, C, D)>
impl<'s, A, B, C, D> Matcher for All<'s, (A, B, C, D)>
Source§impl<'s, A, B, C, D, E> Matcher for All<'s, (A, B, C, D, E)>
impl<'s, A, B, C, D, E> Matcher for All<'s, (A, B, C, D, E)>
Source§impl<'s, A, B, C, D, E, F> Matcher for All<'s, (A, B, C, D, E, F)>
impl<'s, A, B, C, D, E, F> Matcher for All<'s, (A, B, C, D, E, F)>
Source§impl<'s, A, B, C, D, E, F, G> Matcher for All<'s, (A, B, C, D, E, F, G)>
impl<'s, A, B, C, D, E, F, G> Matcher for All<'s, (A, B, C, D, E, F, G)>
Source§impl<'s, A, B, C, D, E, F, G, H> Matcher for All<'s, (A, B, C, D, E, F, G, H)>
impl<'s, A, B, C, D, E, F, G, H> Matcher for All<'s, (A, B, C, D, E, F, G, H)>
Source§impl<'s, A, B, C, D> Query<'s> for All<'s, (A, B, C, D)>
impl<'s, A, B, C, D> Query<'s> for All<'s, (A, B, C, D)>
Source§impl<'s, A, B, C, D, E> Query<'s> for All<'s, (A, B, C, D, E)>
impl<'s, A, B, C, D, E> Query<'s> for All<'s, (A, B, C, D, E)>
Source§impl<'s, A, B, C, D, E, F> Query<'s> for All<'s, (A, B, C, D, E, F)>
impl<'s, A, B, C, D, E, F> Query<'s> for All<'s, (A, B, C, D, E, F)>
Source§impl<'s, A, B, C, D, E, F, G> Query<'s> for All<'s, (A, B, C, D, E, F, G)>
impl<'s, A, B, C, D, E, F, G> Query<'s> for All<'s, (A, B, C, D, E, F, G)>
type Borrow = (A, B, C, D, E, F, G)
type Iter = Zip<(<A as Fetch<'s>>::Iter, <B as Fetch<'s>>::Iter, <C as Fetch<'s>>::Iter, <D as Fetch<'s>>::Iter, <E as Fetch<'s>>::Iter, <F as Fetch<'s>>::Iter, <G as Fetch<'s>>::Iter)>
unsafe fn query<S1: Storage>(storage: &'s S1) -> Self::Iter
Source§impl<'s, A, B, C, D, E, F, G, H> Query<'s> for All<'s, (A, B, C, D, E, F, G, H)>
impl<'s, A, B, C, D, E, F, G, H> Query<'s> for All<'s, (A, B, C, D, E, F, G, H)>
type Borrow = (A, B, C, D, E, F, G, H)
type Iter = Zip<(<A as Fetch<'s>>::Iter, <B as Fetch<'s>>::Iter, <C as Fetch<'s>>::Iter, <D as Fetch<'s>>::Iter, <E as Fetch<'s>>::Iter, <F as Fetch<'s>>::Iter, <G as Fetch<'s>>::Iter, <H as Fetch<'s>>::Iter)>
unsafe fn query<S1: Storage>(storage: &'s S1) -> Self::Iter
Auto Trait Implementations§
impl<'s, Tuple> Freeze for All<'s, Tuple>
impl<'s, Tuple> RefUnwindSafe for All<'s, Tuple>where
Tuple: RefUnwindSafe,
impl<'s, Tuple> Send for All<'s, Tuple>where
Tuple: Sync,
impl<'s, Tuple> Sync for All<'s, Tuple>where
Tuple: Sync,
impl<'s, Tuple> Unpin for All<'s, Tuple>
impl<'s, Tuple> UnwindSafe for All<'s, Tuple>where
Tuple: RefUnwindSafe,
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more