pub enum NodeKind<'a> {
Inner {
left: NodeId,
right: NodeId,
},
Leaf {
triangles: &'a [TriangleId],
},
}Expand description
What a node holds.
Variants§
Inner
An inner node with two children.
Leaf
A leaf holding triangles.
Fields
§
triangles: &'a [TriangleId]The triangles stored in this leaf.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeKind<'a>
impl<'a> RefUnwindSafe for NodeKind<'a>
impl<'a> Send for NodeKind<'a>
impl<'a> Sync for NodeKind<'a>
impl<'a> Unpin for NodeKind<'a>
impl<'a> UnsafeUnpin for NodeKind<'a>
impl<'a> UnwindSafe for NodeKind<'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