pub enum Node<O>where
O: Object,{
Branch {
len: NonZeroUsize,
aabb: (O::Point, O::Point),
},
Twig([usize; 4]),
Leaf(O),
}
Expand description
Variants§
Branch
A branch in the tree
The indices of the nodes belonging to this branch are stored separately in Twig
nodes immediately following this node.
The first of these Twig
nodes starts with padding if len
is not a multiple of TWIG_LEN
.
Fields
§
len: NonZeroUsize
The number of nodes belonging to this branch
Twig([usize; 4])
Contains the indices of nodes belonging to a branch
Leaf(O)
Contains an object stored in the tree
Trait Implementations§
Source§impl<'de, O> Deserialize<'de> for Node<O>
impl<'de, O> Deserialize<'de> for Node<O>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<O> Freeze for Node<O>
impl<O> RefUnwindSafe for Node<O>
impl<O> Send for Node<O>
impl<O> Sync for Node<O>
impl<O> Unpin for Node<O>
impl<O> UnwindSafe for Node<O>
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