pub struct KdTreeLayout<'a> { /* private fields */ }Expand description
Read-only layout for explicit backend staging, retaining CPU traversal ties. The tree owns all storage; borrowing this view performs no copies.
Implementations§
Source§impl<'a> KdTreeLayout<'a>
impl<'a> KdTreeLayout<'a>
Sourcepub fn positions(&self) -> (&'a [f32], &'a [f32], &'a [f32])
pub fn positions(&self) -> (&'a [f32], &'a [f32], &'a [f32])
Coordinates in original point order.
Sourcepub fn point_order(&self) -> &'a [u32]
pub fn point_order(&self) -> &'a [u32]
Original point indices in leaf traversal order.
Sourcepub fn nodes(&self) -> impl ExactSizeIterator<Item = KdTreeNode> + '_
pub fn nodes(&self) -> impl ExactSizeIterator<Item = KdTreeNode> + '_
Nodes in index order. The balanced tree has at most 32 levels for u32 points.
Auto Trait Implementations§
impl<'a> Freeze for KdTreeLayout<'a>
impl<'a> RefUnwindSafe for KdTreeLayout<'a>
impl<'a> Send for KdTreeLayout<'a>
impl<'a> Sync for KdTreeLayout<'a>
impl<'a> Unpin for KdTreeLayout<'a>
impl<'a> UnsafeUnpin for KdTreeLayout<'a>
impl<'a> UnwindSafe for KdTreeLayout<'a>
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