Trait legion::query::DynamicFilter [−][src]
pub trait DynamicFilter: Default + Send + Sync {
fn prepare(&mut self, world: WorldId);
fn matches_archetype<F: Fetch>(&mut self, fetch: &F) -> FilterResult;
}
Expand description
A filter which selects based upon the data available in the archetype.
Required methods
fn matches_archetype<F: Fetch>(&mut self, fetch: &F) -> FilterResult
fn matches_archetype<F: Fetch>(&mut self, fetch: &F) -> FilterResult
Calculates the filter’s result for the given archetype data.