pub trait Filter<'w>where
    Self: Sized + Debug,
{ type Prepared: PreparedFilter + 'w; fn prepare(
        &'w self,
        archetype: &'w Archetype,
        change_tick: u32
    ) -> Self::Prepared; fn matches(&self, arch: &Archetype) -> bool; fn access(&self, id: ArchetypeId, arch: &Archetype) -> Vec<Access>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
    A: Allocator,
; }
Expand description

A filter over a query which will be prepared for an archetype, yielding subsets of slots.

A filter requires Debug for error messages for user conveniance

Required Associated Types

The filter holding possible borrows

Required Methods

Prepare the filter for an archetype. change_tick refers to the last time this query was run. Useful for change detection.

Returns true if the filter will yield at least one entity from the archetype.

Returns false if an entity will never yield, such as a mismatched archetype

Returns which components and how will be accessed for an archetype.

Implementations on Foreign Types

Implementors