Struct Passthrough

Source
pub struct Passthrough;
Expand description

A filter which always defers.

Trait Implementations§

Source§

impl<A, B, C, D, E, F, G, H> BitAnd<Passthrough> for And<(A, B, C, D, E, F, G, H)>

Source§

type Output = And<(A, B, C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(A, B, C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<B, C, D, E, F, G, H> BitAnd<Passthrough> for And<(B, C, D, E, F, G, H)>

Source§

type Output = And<(B, C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(B, C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<C, D, E, F, G, H> BitAnd<Passthrough> for And<(C, D, E, F, G, H)>

Source§

type Output = And<(C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<D, E, F, G, H> BitAnd<Passthrough> for And<(D, E, F, G, H)>

Source§

type Output = And<(D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<E, F, G, H> BitAnd<Passthrough> for And<(E, F, G, H)>

Source§

type Output = And<(E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<F, G, H> BitAnd<Passthrough> for And<(F, G, H)>

Source§

type Output = And<(F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <And<(F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<G, H> BitAnd<Passthrough> for And<(G, H)>

Source§

type Output = And<(G, H)>

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <And<(G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<H> BitAnd<Passthrough> for And<(H,)>

Source§

type Output = And<(H,)>

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <And<(H,)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl BitAnd<Passthrough> for Any

Source§

type Output = Any

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <Any as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<'a, T> BitAnd<Passthrough> for ComponentChangedFilter<T>
where T: Component,

Source§

type Output = ComponentChangedFilter<T>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <ComponentChangedFilter<T> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<'a, T> BitAnd<Passthrough> for ComponentFilter<T>
where T: Component,

Source§

type Output = ComponentFilter<T>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <ComponentFilter<T> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<'a, F> BitAnd<Passthrough> for Not<F>

Source§

type Output = Not<F>

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <Not<F> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<A, B, C, D, E, F, G, H> BitAnd<Passthrough> for Or<(A, B, C, D, E, F, G, H)>

Source§

type Output = Or<(A, B, C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(A, B, C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<B, C, D, E, F, G, H> BitAnd<Passthrough> for Or<(B, C, D, E, F, G, H)>

Source§

type Output = Or<(B, C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(B, C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<C, D, E, F, G, H> BitAnd<Passthrough> for Or<(C, D, E, F, G, H)>

Source§

type Output = Or<(C, D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(C, D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<D, E, F, G, H> BitAnd<Passthrough> for Or<(D, E, F, G, H)>

Source§

type Output = Or<(D, E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(D, E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<E, F, G, H> BitAnd<Passthrough> for Or<(E, F, G, H)>

Source§

type Output = Or<(E, F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(E, F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<F, G, H> BitAnd<Passthrough> for Or<(F, G, H)>

Source§

type Output = Or<(F, G, H)>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <Or<(F, G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<G, H> BitAnd<Passthrough> for Or<(G, H)>

Source§

type Output = Or<(G, H)>

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <Or<(G, H)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<H> BitAnd<Passthrough> for Or<(H,)>

Source§

type Output = Or<(H,)>

The resulting type after applying the & operator.
Source§

fn bitand(self, _: Passthrough) -> <Or<(H,)> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<'a, T> BitAnd<Passthrough> for TryComponentFilter<T>
where T: Component,

Source§

type Output = TryComponentFilter<T>

The resulting type after applying the & operator.
Source§

fn bitand( self, _: Passthrough, ) -> <TryComponentFilter<T> as BitAnd<Passthrough>>::Output

Performs the & operation. Read more
Source§

impl<Rhs> BitAnd<Rhs> for Passthrough

Source§

type Output = Rhs

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rhs) -> <Passthrough as BitAnd<Rhs>>::Output

Performs the & operation. Read more
Source§

impl<A, B, C, D, E, F, G, H> BitOr<Passthrough> for And<(A, B, C, D, E, F, G, H)>

Source§

type Output = And<(A, B, C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <And<(A, B, C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<B, C, D, E, F, G, H> BitOr<Passthrough> for And<(B, C, D, E, F, G, H)>

Source§

type Output = And<(B, C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <And<(B, C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<C, D, E, F, G, H> BitOr<Passthrough> for And<(C, D, E, F, G, H)>

Source§

type Output = And<(C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <And<(C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<D, E, F, G, H> BitOr<Passthrough> for And<(D, E, F, G, H)>

Source§

type Output = And<(D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <And<(D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<E, F, G, H> BitOr<Passthrough> for And<(E, F, G, H)>

Source§

type Output = And<(E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <And<(E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<F, G, H> BitOr<Passthrough> for And<(F, G, H)>

Source§

type Output = And<(F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <And<(F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<G, H> BitOr<Passthrough> for And<(G, H)>

Source§

type Output = And<(G, H)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <And<(G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<H> BitOr<Passthrough> for And<(H,)>

Source§

type Output = And<(H,)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <And<(H,)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl BitOr<Passthrough> for Any

Source§

type Output = Any

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <Any as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<'a, T> BitOr<Passthrough> for ComponentChangedFilter<T>
where T: Component,

Source§

type Output = ComponentChangedFilter<T>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <ComponentChangedFilter<T> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<'a, T> BitOr<Passthrough> for ComponentFilter<T>
where T: Component,

Source§

type Output = ComponentFilter<T>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <ComponentFilter<T> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<'a, F> BitOr<Passthrough> for Not<F>

Source§

type Output = Not<F>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <Not<F> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<A, B, C, D, E, F, G, H> BitOr<Passthrough> for Or<(A, B, C, D, E, F, G, H)>

Source§

type Output = Or<(A, B, C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <Or<(A, B, C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<B, C, D, E, F, G, H> BitOr<Passthrough> for Or<(B, C, D, E, F, G, H)>

Source§

type Output = Or<(B, C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <Or<(B, C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<C, D, E, F, G, H> BitOr<Passthrough> for Or<(C, D, E, F, G, H)>

Source§

type Output = Or<(C, D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <Or<(C, D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<D, E, F, G, H> BitOr<Passthrough> for Or<(D, E, F, G, H)>

Source§

type Output = Or<(D, E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <Or<(D, E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<E, F, G, H> BitOr<Passthrough> for Or<(E, F, G, H)>

Source§

type Output = Or<(E, F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <Or<(E, F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<F, G, H> BitOr<Passthrough> for Or<(F, G, H)>

Source§

type Output = Or<(F, G, H)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <Or<(F, G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<G, H> BitOr<Passthrough> for Or<(G, H)>

Source§

type Output = Or<(G, H)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <Or<(G, H)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<H> BitOr<Passthrough> for Or<(H,)>

Source§

type Output = Or<(H,)>

The resulting type after applying the | operator.
Source§

fn bitor(self, _: Passthrough) -> <Or<(H,)> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<'a, T> BitOr<Passthrough> for TryComponentFilter<T>
where T: Component,

Source§

type Output = TryComponentFilter<T>

The resulting type after applying the | operator.
Source§

fn bitor( self, _: Passthrough, ) -> <TryComponentFilter<T> as BitOr<Passthrough>>::Output

Performs the | operation. Read more
Source§

impl<Rhs> BitOr<Rhs> for Passthrough

Source§

type Output = Rhs

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rhs) -> <Passthrough as BitOr<Rhs>>::Output

Performs the | operation. Read more
Source§

impl Clone for Passthrough

Source§

fn clone(&self) -> Passthrough

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Passthrough

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Passthrough

Source§

fn default() -> Passthrough

Returns the “default value” for a type. Read more
Source§

impl DynamicFilter for Passthrough

Source§

fn prepare(&mut self, _: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<F>(&mut self, _: &F) -> FilterResult
where F: Fetch,

Calculates the filter’s result for the given archetype data.
Source§

impl GroupMatcher for Passthrough

Source§

fn can_match_group() -> bool

Returns true if the filter may potentially match a group.
Source§

fn group_components() -> Vec<ComponentTypeId>

Returns the components that are required to be present in a group.
Source§

impl LayoutFilter for Passthrough

Source§

fn matches_layout(&self, _: &[ComponentTypeId]) -> FilterResult

Calculates the filter’s result for the given entity layout.
Source§

impl Not for Passthrough

Source§

type Output = Passthrough

The resulting type after applying the ! operator.
Source§

fn not(self) -> <Passthrough as Not>::Output

Performs the unary ! operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Component for T
where T: 'static + Send + Sync,

Source§

type Storage = PackedStorage<T>

The storage type required to hold all instances of this component in a world.
Source§

impl<T> Downcast for T
where T: Any,

Source§

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>

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)

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)

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
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Resource for T
where T: 'static,