pub struct KDTree<N: IndexableNum> { /* private fields */ }
Expand description
An owned KDTree buffer.
Usually this will be created from scratch via KDTreeBuilder
.
Implementations§
Source§impl<N: IndexableNum> KDTree<N>
impl<N: IndexableNum> KDTree<N>
Sourcepub fn into_inner(self) -> Vec<u8> ⓘ
pub fn into_inner(self) -> Vec<u8> ⓘ
Consume this KDTree, returning the underlying buffer.
Trait Implementations§
Source§impl<N: IndexableNum> KDTreeIndex<N> for KDTree<N>
impl<N: IndexableNum> KDTreeIndex<N> for KDTree<N>
Source§fn metadata(&self) -> &KDTreeMetadata<N>
fn metadata(&self) -> &KDTreeMetadata<N>
Access the metadata describing this KDTree
Source§fn range(&self, min_x: N, min_y: N, max_x: N, max_y: N) -> Vec<u32>
fn range(&self, min_x: N, min_y: N, max_x: N, max_y: N) -> Vec<u32>
Search the index for items within a given bounding box. Read more
Source§fn range_rect(&self, rect: &impl RectTrait<T = N>) -> Vec<u32>
fn range_rect(&self, rect: &impl RectTrait<T = N>) -> Vec<u32>
Search the index for items within a given bounding box. Read more
Source§fn within(&self, qx: N, qy: N, r: N) -> Vec<u32>
fn within(&self, qx: N, qy: N, r: N) -> Vec<u32>
Search the index for items within a given radius. Read more
Source§fn within_coord(&self, coord: &impl CoordTrait<T = N>, r: N) -> Vec<u32>
fn within_coord(&self, coord: &impl CoordTrait<T = N>, r: N) -> Vec<u32>
Search the index for items within a given radius. Read more
impl<N: IndexableNum> StructuralPartialEq for KDTree<N>
Auto Trait Implementations§
impl<N> Freeze for KDTree<N>
impl<N> RefUnwindSafe for KDTree<N>where
N: RefUnwindSafe,
impl<N> Send for KDTree<N>
impl<N> Sync for KDTree<N>
impl<N> Unpin for KDTree<N>where
N: Unpin,
impl<N> UnwindSafe for KDTree<N>where
N: 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