pub enum KdTreeNode {
Leaf {
start: u32,
end: u32,
},
Branch {
axis: u8,
split: f32,
left: u32,
right: u32,
},
}Expand description
A backend-neutral node in a borrowed KD-tree layout.
Variants§
Leaf
Leaf range in the layout’s point order (end exclusive).
Branch
Near-first split; children are indices into the node iterator.
Trait Implementations§
Source§impl Clone for KdTreeNode
impl Clone for KdTreeNode
Source§fn clone(&self) -> KdTreeNode
fn clone(&self) -> KdTreeNode
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 moreimpl Copy for KdTreeNode
Source§impl Debug for KdTreeNode
impl Debug for KdTreeNode
Source§impl PartialEq for KdTreeNode
impl PartialEq for KdTreeNode
impl StructuralPartialEq for KdTreeNode
Auto Trait Implementations§
impl Freeze for KdTreeNode
impl RefUnwindSafe for KdTreeNode
impl Send for KdTreeNode
impl Sync for KdTreeNode
impl Unpin for KdTreeNode
impl UnsafeUnpin for KdTreeNode
impl UnwindSafe for KdTreeNode
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