Trait legion::query::LayoutFilter
source · [−]pub trait LayoutFilter {
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
fn matches_layout(&self, components: &[ComponentTypeId]) -> FilterResult
fn matches_layout(&self, components: &[ComponentTypeId]) -> FilterResult
Calculates the filter’s result for the given entity layout.