Struct ckb_types::packed::HeaderDigestBuilder
source · pub struct HeaderDigestBuilder { /* private fields */ }
Implementations§
source§impl HeaderDigestBuilder
impl HeaderDigestBuilder
pub const TOTAL_SIZE: usize = 120usize
pub const FIELD_SIZES: [usize; 10] = _
pub const FIELD_COUNT: usize = 10usize
pub fn children_hash(self, v: Byte32) -> HeaderDigestBuilder
pub fn total_difficulty(self, v: Uint256) -> HeaderDigestBuilder
pub fn start_number(self, v: Uint64) -> HeaderDigestBuilder
pub fn end_number(self, v: Uint64) -> HeaderDigestBuilder
pub fn start_epoch(self, v: Uint64) -> HeaderDigestBuilder
pub fn end_epoch(self, v: Uint64) -> HeaderDigestBuilder
pub fn start_timestamp(self, v: Uint64) -> HeaderDigestBuilder
pub fn end_timestamp(self, v: Uint64) -> HeaderDigestBuilder
pub fn start_compact_target(self, v: Uint32) -> HeaderDigestBuilder
pub fn end_compact_target(self, v: Uint32) -> HeaderDigestBuilder
Trait Implementations§
source§impl Builder for HeaderDigestBuilder
impl Builder for HeaderDigestBuilder
source§impl Debug for HeaderDigestBuilder
impl Debug for HeaderDigestBuilder
source§impl Default for HeaderDigestBuilder
impl Default for HeaderDigestBuilder
source§fn default() -> HeaderDigestBuilder
fn default() -> HeaderDigestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for HeaderDigestBuilder
impl Send for HeaderDigestBuilder
impl Sync for HeaderDigestBuilder
impl Unpin for HeaderDigestBuilder
impl UnwindSafe for HeaderDigestBuilder
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