pub enum Node<A, const K: usize> {
Stem {
left: Box<KdTree<A, K>>,
right: Box<KdTree<A, K>>,
split_value: A,
split_dimension: usize,
},
Leaf {
bucket: Vec<[A; K]>,
capacity: usize,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<A, const K: usize> Freeze for Node<A, K>where
A: Freeze,
impl<A, const K: usize> RefUnwindSafe for Node<A, K>where
A: RefUnwindSafe,
impl<A, const K: usize> Send for Node<A, K>where
A: Send,
impl<A, const K: usize> Sync for Node<A, K>where
A: Sync,
impl<A, const K: usize> Unpin for Node<A, K>where
A: Unpin,
impl<A, const K: usize> UnwindSafe for Node<A, K>where
A: 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