pub struct SpatialPartitioning<Extractor: SpatialExtractor> { /* private fields */ }Implementations§
Source§impl<Extractor: SpatialExtractor> SpatialPartitioning<Extractor>
impl<Extractor: SpatialExtractor> SpatialPartitioning<Extractor>
pub fn rebuild<const LOCKING: bool>(&mut self, world: &World)
pub fn tree(&self) -> &RTree<GeomWithData<Extractor::SpatialObject, Entity>>
pub fn nearest_entities( &self, point: &<<Extractor::SpatialObject as RTreeObject>::Envelope as Envelope>::Point, ) -> impl Iterator<Item = Entity> + '_
pub fn locate_contained_entities( &self, envelope: &<Extractor::SpatialObject as RTreeObject>::Envelope, ) -> impl Iterator<Item = Entity> + '_
pub fn locate_intersecting_entities( &self, envelope: &<Extractor::SpatialObject as RTreeObject>::Envelope, ) -> impl Iterator<Item = Entity> + '_
pub fn nearest_query<'a, const LOCKING: bool, Fetch: TypedLookupFetch<'a, LOCKING>>( &'a self, world: &'a World, point: &<<Extractor::SpatialObject as RTreeObject>::Envelope as Envelope>::Point, ) -> impl Iterator<Item = Fetch::Value>
pub fn locate_contained_query<'a, const LOCKING: bool, Fetch: TypedLookupFetch<'a, LOCKING>>( &'a self, world: &'a World, envelope: &<Extractor::SpatialObject as RTreeObject>::Envelope, ) -> impl Iterator<Item = Fetch::Value>
pub fn locate_intersecting_query<'a, const LOCKING: bool, Fetch: TypedLookupFetch<'a, LOCKING>>( &'a self, world: &'a World, envelope: &<Extractor::SpatialObject as RTreeObject>::Envelope, ) -> impl Iterator<Item = Fetch::Value>
Trait Implementations§
Source§impl<Extractor: SpatialExtractor> Default for SpatialPartitioning<Extractor>
impl<Extractor: SpatialExtractor> Default for SpatialPartitioning<Extractor>
Auto Trait Implementations§
impl<Extractor> Freeze for SpatialPartitioning<Extractor>
impl<Extractor> RefUnwindSafe for SpatialPartitioning<Extractor>where
<<Extractor as SpatialExtractor>::SpatialObject as RTreeObject>::Envelope: RefUnwindSafe,
<Extractor as SpatialExtractor>::SpatialObject: RefUnwindSafe,
impl<Extractor> Send for SpatialPartitioning<Extractor>
impl<Extractor> Sync for SpatialPartitioning<Extractor>
impl<Extractor> Unpin for SpatialPartitioning<Extractor>where
<<Extractor as SpatialExtractor>::SpatialObject as RTreeObject>::Envelope: Unpin,
<Extractor as SpatialExtractor>::SpatialObject: Unpin,
impl<Extractor> UnwindSafe for SpatialPartitioning<Extractor>where
<<Extractor as SpatialExtractor>::SpatialObject as RTreeObject>::Envelope: UnwindSafe,
<Extractor as SpatialExtractor>::SpatialObject: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more