Struct ckb_types::packed::RawHeaderBuilder
source · pub struct RawHeaderBuilder { /* private fields */ }
Implementations§
source§impl RawHeaderBuilder
impl RawHeaderBuilder
pub const TOTAL_SIZE: usize = 192usize
pub const FIELD_SIZES: [usize; 10] = _
pub const FIELD_COUNT: usize = 10usize
pub fn version(self, v: Uint32) -> RawHeaderBuilder
pub fn compact_target(self, v: Uint32) -> RawHeaderBuilder
pub fn timestamp(self, v: Uint64) -> RawHeaderBuilder
pub fn number(self, v: Uint64) -> RawHeaderBuilder
pub fn epoch(self, v: Uint64) -> RawHeaderBuilder
pub fn parent_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn transactions_root(self, v: Byte32) -> RawHeaderBuilder
pub fn proposals_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn extra_hash(self, v: Byte32) -> RawHeaderBuilder
pub fn dao(self, v: Byte32) -> RawHeaderBuilder
Trait Implementations§
source§impl Builder for RawHeaderBuilder
impl Builder for RawHeaderBuilder
source§impl Debug for RawHeaderBuilder
impl Debug for RawHeaderBuilder
source§impl Default for RawHeaderBuilder
impl Default for RawHeaderBuilder
source§fn default() -> RawHeaderBuilder
fn default() -> RawHeaderBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RawHeaderBuilder
impl Send for RawHeaderBuilder
impl Sync for RawHeaderBuilder
impl Unpin for RawHeaderBuilder
impl UnwindSafe for RawHeaderBuilder
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