pub struct VerifiableHeader(/* private fields */);
Implementations§
Source§impl VerifiableHeader
impl VerifiableHeader
pub const FIELD_COUNT: usize = 4usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn header(&self) -> Header
pub fn uncles_hash(&self) -> Byte32
pub fn extension(&self) -> BytesOpt
pub fn parent_chain_root(&self) -> HeaderDigest
pub fn as_reader<'r>(&'r self) -> VerifiableHeaderReader<'r>
Trait Implementations§
Source§impl Clone for VerifiableHeader
impl Clone for VerifiableHeader
Source§fn clone(&self) -> VerifiableHeader
fn clone(&self) -> VerifiableHeader
Returns a copy of the value. Read more
1.0.0 · 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 VerifiableHeader
impl Debug for VerifiableHeader
Source§impl Default for VerifiableHeader
impl Default for VerifiableHeader
Source§fn default() -> VerifiableHeader
fn default() -> VerifiableHeader
Returns the “default value” for a type. Read more
Source§impl Display for VerifiableHeader
impl Display for VerifiableHeader
Source§impl Entity for VerifiableHeader
impl Entity for VerifiableHeader
const NAME: &'static str = "VerifiableHeader"
type Builder = VerifiableHeaderBuilder
fn new_unchecked(data: Bytes) -> VerifiableHeader
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<VerifiableHeader, VerificationError>
fn from_compatible_slice( slice: &[u8], ) -> Result<VerifiableHeader, VerificationError>
fn new_builder() -> <VerifiableHeader as Entity>::Builder
fn as_builder(self) -> <VerifiableHeader as Entity>::Builder
Source§impl From<VerifiableHeader> for VerifiableHeader
impl From<VerifiableHeader> for VerifiableHeader
Source§fn from(raw: VerifiableHeader) -> Self
fn from(raw: VerifiableHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for VerifiableHeader
impl RefUnwindSafe for VerifiableHeader
impl Send for VerifiableHeader
impl Sync for VerifiableHeader
impl Unpin for VerifiableHeader
impl UnwindSafe for VerifiableHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> PackVec<VerifiableHeaderVec, VerifiableHeader> for Twhere
T: IntoIterator<Item = VerifiableHeader>,
impl<T> PackVec<VerifiableHeaderVec, VerifiableHeader> for Twhere
T: IntoIterator<Item = VerifiableHeader>,
Source§fn pack(self) -> VerifiableHeaderVec
fn pack(self) -> VerifiableHeaderVec
Packs a vector of binary data into one binary data.