Trait bevy::ecs::query::ArchetypeFilter
pub trait ArchetypeFilter: WorldQueryFilter { }
Expand description
A marker trait to indicate that the filter works at an archetype level.
This is needed to implement ExactSizeIterator
for
QueryIter
that contains archetype-level filters.
The trait must only be implemented for filters where its corresponding WorldQueryFilter::IS_ARCHETYPAL
is true
. As such, only the With
and Without
filters can implement the trait.
Tuples and Or
filters are automatically implemented with the trait only if its containing types
also implement the same trait.
Added
and Changed
works with entities, and therefore are not archetypal. As such
they do not implement ArchetypeFilter
.