Struct ckb_types::core::HeaderView [−][src]
pub struct HeaderView { /* fields omitted */ }
Expand description
A readonly and immutable struct which includes Header
and its hash.
Notice
This struct is not implement the trait Default
, use HeaderBuilder
to construct it.
Implementations
Creates an empty advanced builder.
Creates an advanced builder base on current data.
Gets a clone of packed::Header
.
Gets raw.number
.
Gets raw.compact_target
.
Gets raw.epoch
.
Gets raw.parent_hash
.
Gets raw.transactions_root
.
Gets raw.proposals_hash
.
Gets raw.extra_hash
.
Gets raw.difficulty
.
Checks whether the header is the header block.
Trait Implementations
Packs a rust type into binary data.
Unpack binary data into rust types.
Unpack binary data into rust types.
Auto Trait Implementations
impl RefUnwindSafe for HeaderView
impl Send for HeaderView
impl Sync for HeaderView
impl Unpin for HeaderView
impl UnwindSafe for HeaderView
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V