Trait DynamicFilter

Source
pub trait DynamicFilter:
    Default
    + Send
    + Sync {
    // Required methods
    fn prepare(&mut self, world: WorldId);
    fn matches_archetype<F>(&mut self, fetch: &F) -> FilterResult
       where F: Fetch;
}
Expand description

A filter which selects based upon the data available in the archetype.

Required Methods§

Source

fn prepare(&mut self, world: WorldId)

Prepares the filter to run.

Source

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

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

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 DynamicFilter for Any

Source§

impl DynamicFilter for Passthrough

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<F> DynamicFilter for Not<F>
where F: DynamicFilter,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> DynamicFilter for ComponentChangedFilter<T>
where T: Component,

Source§

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