pub enum Leaf<'a, H> {
Value(&'a [u8]),
Hash(H),
}
Expand description
Leaf node for proof verification.
Can be either a value that needs to be hashed first, or the hash itself.
Variants§
Trait Implementations§
impl<'a, H: Eq> Eq for Leaf<'a, H>
impl<'a, H> StructuralPartialEq for Leaf<'a, H>
Auto Trait Implementations§
impl<'a, H> Freeze for Leaf<'a, H>where
H: Freeze,
impl<'a, H> RefUnwindSafe for Leaf<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for Leaf<'a, H>where
H: Send,
impl<'a, H> Sync for Leaf<'a, H>where
H: Sync,
impl<'a, H> Unpin for Leaf<'a, H>where
H: Unpin,
impl<'a, H> UnwindSafe for Leaf<'a, H>where
H: 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