pub struct LinearSpatialIndex<T> { /* private fields */ }Implementations§
Source§impl<T> LinearSpatialIndex<T>
impl<T> LinearSpatialIndex<T>
pub fn new() -> Self
pub fn with_entries(entries: Vec<SpatialEntry<T>>) -> Self
pub fn insert(&mut self, bounds: Aabb3, payload: T)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn entries(&self) -> &[SpatialEntry<T>]
pub fn query_point( &self, point: Point3, ) -> impl Iterator<Item = &SpatialEntry<T>>
pub fn query_bounds( &self, bounds: Aabb3, ) -> impl Iterator<Item = &SpatialEntry<T>>
pub fn nearest_by_center(&self, point: Point3) -> Option<&SpatialEntry<T>>
Trait Implementations§
Source§impl<T: Clone> Clone for LinearSpatialIndex<T>
impl<T: Clone> Clone for LinearSpatialIndex<T>
Source§fn clone(&self) -> LinearSpatialIndex<T>
fn clone(&self) -> LinearSpatialIndex<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LinearSpatialIndex<T>
impl<T: Debug> Debug for LinearSpatialIndex<T>
Source§impl<T> Default for LinearSpatialIndex<T>
impl<T> Default for LinearSpatialIndex<T>
Source§impl<'de, T> Deserialize<'de> for LinearSpatialIndex<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for LinearSpatialIndex<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for LinearSpatialIndex<T>
impl<T: PartialEq> PartialEq for LinearSpatialIndex<T>
Source§impl<T> Serialize for LinearSpatialIndex<T>where
T: Serialize,
impl<T> Serialize for LinearSpatialIndex<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for LinearSpatialIndex<T>
Auto Trait Implementations§
impl<T> Freeze for LinearSpatialIndex<T>
impl<T> RefUnwindSafe for LinearSpatialIndex<T>where
T: RefUnwindSafe,
impl<T> Send for LinearSpatialIndex<T>where
T: Send,
impl<T> Sync for LinearSpatialIndex<T>where
T: Sync,
impl<T> Unpin for LinearSpatialIndex<T>where
T: Unpin,
impl<T> UnsafeUnpin for LinearSpatialIndex<T>
impl<T> UnwindSafe for LinearSpatialIndex<T>where
T: 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