pub enum MerkleDirection {
Left,
Right,
}Expand description
Direction of a sibling node in a Merkle proof path.
Variants§
Left
Sibling is on the left; reconstructed hash combines as
H(sibling || current).
Right
Sibling is on the right; reconstructed hash combines as
H(current || sibling).
Trait Implementations§
Source§impl Clone for MerkleDirection
impl Clone for MerkleDirection
impl Copy for MerkleDirection
Source§impl Debug for MerkleDirection
impl Debug for MerkleDirection
Source§impl<'de> Deserialize<'de> for MerkleDirection
impl<'de> Deserialize<'de> for MerkleDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MerkleDirection
Source§impl Hash for MerkleDirection
impl Hash for MerkleDirection
Source§impl PartialEq for MerkleDirection
impl PartialEq for MerkleDirection
Source§impl Serialize for MerkleDirection
impl Serialize for MerkleDirection
impl StructuralPartialEq for MerkleDirection
Auto Trait Implementations§
impl Freeze for MerkleDirection
impl RefUnwindSafe for MerkleDirection
impl Send for MerkleDirection
impl Sync for MerkleDirection
impl Unpin for MerkleDirection
impl UnsafeUnpin for MerkleDirection
impl UnwindSafe for MerkleDirection
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