pub struct HashLeaf {
pub signature: [u8; 2],
pub num_elements: u16,
pub elements: Vec<HashLeafElement>,
}Expand description
Hash leaf list (lh).
Fields§
§signature: [u8; 2]Signature: “lh”
num_elements: u16Number of elements.
elements: Vec<HashLeafElement>List elements.
Implementations§
Source§impl HashLeaf
impl HashLeaf
Sourcepub const HEADER_SIZE: usize = 4
pub const HEADER_SIZE: usize = 4
Fixed header size.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Get the total size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashLeaf
impl RefUnwindSafe for HashLeaf
impl Send for HashLeaf
impl Sync for HashLeaf
impl Unpin for HashLeaf
impl UnsafeUnpin for HashLeaf
impl UnwindSafe for HashLeaf
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