pub struct SiblingNode {
pub hash: IntentHash,
pub is_left: bool,
}Expand description
One node along a Merkle path.
Fields§
§hash: IntentHash§is_left: boolWhen true, this sibling is the left child; the current node is on the right.
Trait Implementations§
Source§impl Clone for SiblingNode
impl Clone for SiblingNode
Source§fn clone(&self) -> SiblingNode
fn clone(&self) -> SiblingNode
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 moreSource§impl Debug for SiblingNode
impl Debug for SiblingNode
Source§impl<'de> Deserialize<'de> for SiblingNode
impl<'de> Deserialize<'de> for SiblingNode
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
Source§impl PartialEq for SiblingNode
impl PartialEq for SiblingNode
Source§fn eq(&self, other: &SiblingNode) -> bool
fn eq(&self, other: &SiblingNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SiblingNode
impl Serialize for SiblingNode
impl StructuralPartialEq for SiblingNode
Auto Trait Implementations§
impl Freeze for SiblingNode
impl RefUnwindSafe for SiblingNode
impl Send for SiblingNode
impl Sync for SiblingNode
impl Unpin for SiblingNode
impl UnsafeUnpin for SiblingNode
impl UnwindSafe for SiblingNode
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