Trait LayoutFilter

Source
pub trait LayoutFilter {
    // Required method
    fn matches_layout(&self, components: &[ComponentTypeId]) -> FilterResult;
}
Expand description

A filter which selects based upon which component types are attached to an entity.

These filters should be idempotent and immutable.

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

impl LayoutFilter for Rc<EntityLayout>

Implementors§

Source§

impl LayoutFilter for EntityLayout

Source§

impl LayoutFilter for Any

Source§

impl LayoutFilter for Passthrough

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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