pub struct KDTree { /* private fields */ }Expand description
The KD-tree data structure.
Implementations§
Source§impl KDTree
impl KDTree
Sourcepub fn build_config<S: Bounded>(shapes: &[S], config: &BuilderConfig) -> Self
pub fn build_config<S: Bounded>(shapes: &[S], config: &BuilderConfig) -> Self
This function is used to build a new KD-tree. You need to provide a
Vec of shapes that implement Bounded trait.
You also should give a configuration.
Panic if the shapes is empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KDTree
impl RefUnwindSafe for KDTree
impl Send for KDTree
impl Sync for KDTree
impl Unpin for KDTree
impl UnwindSafe for KDTree
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more