pub trait SpatialExtractor: 'static{
type SpatialObject: RTreeObject + PointDistance + Send + Sync;
// Required method
fn extract<const LOCKING: bool>(
world: &World,
) -> impl Iterator<Item = (Entity, Self::SpatialObject)>;
}Required Associated Types§
type SpatialObject: RTreeObject + PointDistance + Send + Sync
Required Methods§
fn extract<const LOCKING: bool>( world: &World, ) -> impl Iterator<Item = (Entity, Self::SpatialObject)>
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.