pub struct VebEntry<T> {
pub id: u32,
pub data: T,
pub child_indices: Vec<u32>,
pub parent_index: u32,
pub depth: u16,
}Expand description
A node stored in the vEB-laid-out flat array.
Fields§
§id: u32Original node ID.
data: TUser data.
child_indices: Vec<u32>Indices of children in the flat array (not node IDs).
parent_index: u32Index of parent in the flat array (u32::MAX for root).
depth: u16Depth in the original tree (root = 0).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for VebEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for VebEntry<T>where
T: RefUnwindSafe,
impl<T> Send for VebEntry<T>where
T: Send,
impl<T> Sync for VebEntry<T>where
T: Sync,
impl<T> Unpin for VebEntry<T>where
T: Unpin,
impl<T> UnsafeUnpin for VebEntry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VebEntry<T>where
T: 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