Struct ckb_types::packed::EpochExt [−][src]
pub struct EpochExt(_);
Implementations
impl EpochExt
[src]
impl EpochExt
[src]pub const TOTAL_SIZE: usize
[src]
pub const FIELD_SIZES: [usize; 8]
[src]
pub const FIELD_COUNT: usize
[src]
pub fn previous_epoch_hash_rate(&self) -> Uint256
[src]
pub fn last_block_hash_in_previous_epoch(&self) -> Byte32
[src]
pub fn compact_target(&self) -> Uint32
[src]
pub fn number(&self) -> Uint64
[src]
pub fn base_block_reward(&self) -> Uint64
[src]
pub fn remainder_reward(&self) -> Uint64
[src]
pub fn start_number(&self) -> Uint64
[src]
pub fn length(&self) -> Uint64
[src]
pub fn as_reader<'r>(&'r self) -> EpochExtReader<'r>
[src]
Trait Implementations
impl Entity for EpochExt
[src]
impl Entity for EpochExt
[src]type Builder = EpochExtBuilder
const NAME: &'static str
[src]
fn new_unchecked(data: Bytes) -> Self
[src]
fn as_bytes(&self) -> Bytes
[src]
fn as_slice(&self) -> &[u8]
[src]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
[src]
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
[src]
fn new_builder() -> Self::Builder
[src]
fn as_builder(self) -> Self::Builder
[src]
Auto Trait Implementations
impl RefUnwindSafe for EpochExt
impl Send for EpochExt
impl Sync for EpochExt
impl Unpin for EpochExt
impl UnwindSafe for EpochExt
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,