Struct ckb_types::packed::EpochExtBuilder
source · pub struct EpochExtBuilder { /* private fields */ }
Implementations§
source§impl EpochExtBuilder
impl EpochExtBuilder
pub const TOTAL_SIZE: usize = 108usize
pub const FIELD_SIZES: [usize; 8] = _
pub const FIELD_COUNT: usize = 8usize
pub fn previous_epoch_hash_rate(self, v: Uint256) -> EpochExtBuilder
pub fn last_block_hash_in_previous_epoch(self, v: Byte32) -> EpochExtBuilder
pub fn compact_target(self, v: Uint32) -> EpochExtBuilder
pub fn number(self, v: Uint64) -> EpochExtBuilder
pub fn base_block_reward(self, v: Uint64) -> EpochExtBuilder
pub fn remainder_reward(self, v: Uint64) -> EpochExtBuilder
pub fn start_number(self, v: Uint64) -> EpochExtBuilder
pub fn length(self, v: Uint64) -> EpochExtBuilder
Trait Implementations§
source§impl Builder for EpochExtBuilder
impl Builder for EpochExtBuilder
source§impl Debug for EpochExtBuilder
impl Debug for EpochExtBuilder
source§impl Default for EpochExtBuilder
impl Default for EpochExtBuilder
source§fn default() -> EpochExtBuilder
fn default() -> EpochExtBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EpochExtBuilder
impl Send for EpochExtBuilder
impl Sync for EpochExtBuilder
impl Unpin for EpochExtBuilder
impl UnwindSafe for EpochExtBuilder
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