pub struct DyadicNode {
pub level: u8,
pub index: u128,
}Expand description
A dyadic node of the key space: level 0..=128, width 2^(128-level)
keys starting at the multiple index · 2^(128-level). Level 128 is the
single-key leaf (an instant’s exact tick). Nodes order by (level, index)
— coarse first — which is the deterministic serialization order.
Fields§
§level: u8Depth in the tree (0 = whole axis, 128 = single key).
index: u128Node index among the 2^level nodes of this level
(index == start_key >> (128 - level); 0 at level 0).
Implementations§
Trait Implementations§
Source§impl Clone for DyadicNode
impl Clone for DyadicNode
Source§fn clone(&self) -> DyadicNode
fn clone(&self) -> DyadicNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DyadicNode
impl Debug for DyadicNode
Source§impl Hash for DyadicNode
impl Hash for DyadicNode
Source§impl Ord for DyadicNode
impl Ord for DyadicNode
Source§fn cmp(&self, other: &DyadicNode) -> Ordering
fn cmp(&self, other: &DyadicNode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DyadicNode
impl PartialEq for DyadicNode
Source§impl PartialOrd for DyadicNode
impl PartialOrd for DyadicNode
impl Copy for DyadicNode
impl Eq for DyadicNode
impl StructuralPartialEq for DyadicNode
Auto Trait Implementations§
impl Freeze for DyadicNode
impl RefUnwindSafe for DyadicNode
impl Send for DyadicNode
impl Sync for DyadicNode
impl Unpin for DyadicNode
impl UnsafeUnpin for DyadicNode
impl UnwindSafe for DyadicNode
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