pub struct Parent {
pub node: TreeNode,
pub pair: (Hash, Hash),
}
Expand description
A parent hash pair.
Fields§
§node: TreeNode
The node in the tree for which the hashes are.
pair: (Hash, Hash)
The pair of hashes for the node.
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Parent
impl<'a> Deserialize<'a> for Parent
Source§fn deserialize<D: Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Parent> for BaoContentItem
impl From<Parent> for BaoContentItem
Source§impl From<Parent> for EncodedItem
impl From<Parent> for EncodedItem
Auto Trait Implementations§
impl Freeze for Parent
impl RefUnwindSafe for Parent
impl Send for Parent
impl Sync for Parent
impl Unpin for Parent
impl UnwindSafe for Parent
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