GroupMatcher

Trait GroupMatcher 

Source
pub trait GroupMatcher {
    // Required methods
    fn can_match_group() -> bool;
    fn group_components() -> Vec<ComponentTypeId>;
}
Expand description

Allows a filter to determine if component optimization groups can be used to accelerate queries that use this filter.

Required Methods§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl GroupMatcher for Any

Source§

impl GroupMatcher for Passthrough

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<F> GroupMatcher for Not<F>

Source§

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

Source§

impl<F, G, H> GroupMatcher for Or<(F, G, H)>

Source§

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

Source§

impl<G, H> GroupMatcher for Or<(G, H)>

Source§

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

Source§

impl<H> GroupMatcher for Or<(H,)>

Source§

impl<T> GroupMatcher for ComponentFilter<T>
where T: Component,

Source§

impl<T> GroupMatcher for TryComponentFilter<T>
where T: Component,

Source§

impl<T> GroupMatcher for T
where T: EntityFilter,