pub struct DerivationNode {
pub is_valid: bool,
pub depth: u8,
pub epoch: u64,
pub first_child: u32,
pub next_sibling: u32,
pub parent_index: u32,
}Expand description
A node in the derivation tree.
Uses a first-child / next-sibling linked list layout for O(1) insertion and efficient subtree traversal without allocation.
Fields§
§is_valid: boolWhether this node is valid (not revoked).
depth: u8Depth in the derivation tree (0 = root).
epoch: u64Epoch at which this capability was created.
first_child: u32Index of the first child (or u32::MAX if no children).
next_sibling: u32Index of the next sibling (or u32::MAX if no sibling).
parent_index: u32Cached parent index for O(1) parent lookup.
u32::MAX means no parent (root node).
Implementations§
Source§impl DerivationNode
impl DerivationNode
Trait Implementations§
Source§impl Clone for DerivationNode
impl Clone for DerivationNode
Source§fn clone(&self) -> DerivationNode
fn clone(&self) -> DerivationNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DerivationNode
Source§impl Debug for DerivationNode
impl Debug for DerivationNode
Source§impl Default for DerivationNode
impl Default for DerivationNode
impl Eq for DerivationNode
Source§impl PartialEq for DerivationNode
impl PartialEq for DerivationNode
impl StructuralPartialEq for DerivationNode
Auto Trait Implementations§
impl Freeze for DerivationNode
impl RefUnwindSafe for DerivationNode
impl Send for DerivationNode
impl Sync for DerivationNode
impl Unpin for DerivationNode
impl UnsafeUnpin for DerivationNode
impl UnwindSafe for DerivationNode
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