Trait ckb_jsonrpc_types::AsEpochNumberWithFraction[][src]

pub trait AsEpochNumberWithFraction {
    fn epoch_number(&self) -> u64;
fn epoch_index(&self) -> u64;
fn epoch_length(&self) -> u64; }

This trait is a restriction for type Uint64, so we can only get epoch_number, epoch_index and epoch_length from the type EpochNumberWithFraction instead of all Uint64

Required methods

fn epoch_number(&self) -> u64[src]

Return the epoch number of current block

fn epoch_index(&self) -> u64[src]

Return the index in epoch of current block

fn epoch_length(&self) -> u64[src]

Return the epoch length of current block

Loading content...

Implementors

Loading content...