pub struct ValidatedHeader { /* private fields */ }Expand description
The verified header of one complete record: outer hash, canonical length and the canonical non-payload prefix, whose length is the data offset.
Implementations§
Source§impl ValidatedHeader
impl ValidatedHeader
pub fn hash(&self) -> RecordHash
pub fn canonical_len(&self) -> usize
Trait Implementations§
Source§impl Clone for ValidatedHeader
impl Clone for ValidatedHeader
Source§fn clone(&self) -> ValidatedHeader
fn clone(&self) -> ValidatedHeader
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 ValidatedHeader
impl Debug for ValidatedHeader
impl Eq for ValidatedHeader
Source§impl PartialEq for ValidatedHeader
impl PartialEq for ValidatedHeader
Source§fn eq(&self, other: &ValidatedHeader) -> bool
fn eq(&self, other: &ValidatedHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidatedHeader
Auto Trait Implementations§
impl Freeze for ValidatedHeader
impl RefUnwindSafe for ValidatedHeader
impl Send for ValidatedHeader
impl Sync for ValidatedHeader
impl Unpin for ValidatedHeader
impl UnsafeUnpin for ValidatedHeader
impl UnwindSafe for ValidatedHeader
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