pub trait SpatialHashFilter:
QueryFilter
+ Send
+ Sync
+ 'static { }Expand description
Used as a QueryFilter to include or exclude certain types of entities from spatial
hashing.The trait is automatically implemented for all compatible types, like With or
Without.
By default, this is (), but it can be overridden when adding the CellHashingPlugin and
CellLookup. For example, if you use With<Players> as your filter, only Players would be
considered when building spatial hash maps. This is useful when you only care about querying
certain entities and want to avoid the plugin doing bookkeeping work for entities you don’t
care about.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.