pub enum Leaf<'a> {
Occupied {
leaf: &'a [u8; 32],
},
OccupiedOwned {
leaf: [u8; 32],
},
Empty {
skip_count: NonZeroU128,
},
}
Expand description
Sparse Merkle Tree Leaf
Variants§
Occupied
Leaf contains a value
OccupiedOwned
Leaf contains a value (owned)
Empty
Leaf is empty
Fields
§
skip_count: NonZeroU128
Number of consecutive empty leaves
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Leaf<'a>
impl<'a> RefUnwindSafe for Leaf<'a>
impl<'a> Send for Leaf<'a>
impl<'a> Sync for Leaf<'a>
impl<'a> Unpin for Leaf<'a>
impl<'a> UnwindSafe for Leaf<'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