Struct And

Source
pub struct And<T> { /* private fields */ }
Expand description

A filter which requires all filters within T match.

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<A, B, C, D, E, F, G, H, Rhs> BitAnd<Rhs> for And<(A, B, C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<B, C, D, E, F, G, H, Rhs> BitAnd<Rhs> for And<(B, C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<C, D, E, F, G, H, Rhs> BitAnd<Rhs> for And<(C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<D, E, F, G, H, Rhs> BitAnd<Rhs> for And<(D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<E, F, G, H, Rhs> BitAnd<Rhs> for And<(E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<F, G, H, Rhs> BitAnd<Rhs> for And<(F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<G, H, Rhs> BitAnd<Rhs> for And<(G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl<H, Rhs> BitAnd<Rhs> for And<(H,)>
where Rhs: ActiveFilter,

Source§

type Output = And<(H, Rhs)>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rhs) -> <And<(H,)> 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<A, B, C, D, E, F, G, H, Rhs> BitOr<Rhs> for And<(A, B, C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<B, C, D, E, F, G, H, Rhs> BitOr<Rhs> for And<(B, C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<C, D, E, F, G, H, Rhs> BitOr<Rhs> for And<(C, D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<D, E, F, G, H, Rhs> BitOr<Rhs> for And<(D, E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<E, F, G, H, Rhs> BitOr<Rhs> for And<(E, F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<F, G, H, Rhs> BitOr<Rhs> for And<(F, G, H)>
where Rhs: ActiveFilter,

Source§

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

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<G, H, Rhs> BitOr<Rhs> for And<(G, H)>
where Rhs: ActiveFilter,

Source§

type Output = Or<(And<(G, H)>, Rhs)>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl<H, Rhs> BitOr<Rhs> for And<(H,)>
where Rhs: ActiveFilter,

Source§

type Output = Or<(And<(H,)>, Rhs)>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

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

Source§

fn clone(&self) -> And<T>

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<T> Debug for And<T>
where T: Debug,

Source§

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

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

impl<A, B, C, D, E, F, G, H> Default for And<(A, B, C, D, E, F, G, H)>
where A: Default, B: Default, C: Default, D: Default, E: Default, F: Default, G: Default, H: Default,

Source§

fn default() -> And<(A, B, C, D, E, F, G, H)>

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

impl<B, C, D, E, F, G, H> Default for And<(B, C, D, E, F, G, H)>
where B: Default, C: Default, D: Default, E: Default, F: Default, G: Default, H: Default,

Source§

fn default() -> And<(B, C, D, E, F, G, H)>

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

impl<C, D, E, F, G, H> Default for And<(C, D, E, F, G, H)>
where C: Default, D: Default, E: Default, F: Default, G: Default, H: Default,

Source§

fn default() -> And<(C, D, E, F, G, H)>

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

impl<D, E, F, G, H> Default for And<(D, E, F, G, H)>
where D: Default, E: Default, F: Default, G: Default, H: Default,

Source§

fn default() -> And<(D, E, F, G, H)>

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

impl<E, F, G, H> Default for And<(E, F, G, H)>
where E: Default, F: Default, G: Default, H: Default,

Source§

fn default() -> And<(E, F, G, H)>

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

impl<F, G, H> Default for And<(F, G, H)>
where F: Default, G: Default, H: Default,

Source§

fn default() -> And<(F, G, H)>

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

impl<G, H> Default for And<(G, H)>
where G: Default, H: Default,

Source§

fn default() -> And<(G, H)>

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

impl<H> Default for And<(H,)>
where H: Default,

Source§

fn default() -> And<(H,)>

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

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

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

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

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

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

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

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

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

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

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

impl<F, G, H> DynamicFilter for And<(F, G, H)>

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

impl<G, H> DynamicFilter for And<(G, H)>

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

impl<H> DynamicFilter for And<(H,)>
where H: DynamicFilter,

Source§

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.
Source§

fn matches_archetype<Fet>(&mut self, fetch: &Fet) -> FilterResult
where Fet: Fetch,

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

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

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<B, C, D, E, F, G, H> GroupMatcher for And<(B, C, D, E, F, G, H)>

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<C, D, E, F, G, H> GroupMatcher for And<(C, D, E, F, G, H)>

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<D, E, F, G, H> GroupMatcher for And<(D, E, F, G, H)>

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<E, F, G, H> GroupMatcher for And<(E, F, G, H)>

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<F, G, H> GroupMatcher for And<(F, G, H)>

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<G, H> GroupMatcher for And<(G, H)>

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<H> GroupMatcher for And<(H,)>
where H: GroupMatcher,

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<A, B, C, D, E, F, G, H> LayoutFilter for And<(A, B, C, D, E, F, G, H)>

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

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

Source§

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

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

impl<F, G, H> LayoutFilter for And<(F, G, H)>

Source§

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

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

impl<G, H> LayoutFilter for And<(G, H)>

Source§

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

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

impl<H> LayoutFilter for And<(H,)>
where H: LayoutFilter,

Source§

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

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

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

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(A, B, C, D, E, F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

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

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(B, C, D, E, F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

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

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(C, D, E, F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

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

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(D, E, F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

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

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(E, F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

impl<F, G, H> Not for And<(F, G, H)>

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(F, G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

impl<G, H> Not for And<(G, H)>

Source§

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

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(G, H)> as Not>::Output

Performs the unary ! operation. Read more
Source§

impl<H> Not for And<(H,)>

Source§

type Output = Not<And<(H,)>>

The resulting type after applying the ! operator.
Source§

fn not(self) -> <And<(H,)> as Not>::Output

Performs the unary ! operation. Read more

Auto Trait Implementations§

§

impl<T> Freeze for And<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for And<T>
where T: RefUnwindSafe,

§

impl<T> Send for And<T>
where T: Send,

§

impl<T> Sync for And<T>
where T: Sync,

§

impl<T> Unpin for And<T>
where T: Unpin,

§

impl<T> UnwindSafe for And<T>
where T: UnwindSafe,

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,