[][src]Struct ckb_types::core::BlockView

pub struct BlockView { /* fields omitted */ }

Implementations

impl BlockView[src]

impl BlockView[src]

pub fn data(&self) -> Block[src]

pub fn hash(&self) -> Byte32[src]

pub fn uncle_hashes(&self) -> Byte32Vec[src]

pub fn tx_hashes(&self) -> &[Byte32][src]

pub fn tx_witness_hashes(&self) -> &[Byte32][src]

pub fn version(&self) -> Version[src]

pub fn number(&self) -> BlockNumber[src]

pub fn compact_target(&self) -> u32[src]

pub fn timestamp(&self) -> u64[src]

pub fn epoch(&self) -> EpochNumberWithFraction[src]

pub fn parent_hash(&self) -> Byte32[src]

pub fn transactions_root(&self) -> Byte32[src]

pub fn proposals_hash(&self) -> Byte32[src]

pub fn uncles_hash(&self) -> Byte32[src]

pub fn dao(&self) -> Byte32[src]

pub fn nonce(&self) -> u128[src]

pub fn difficulty(&self) -> U256[src]

pub fn header(&self) -> HeaderView[src]

pub fn uncles(&self) -> UncleBlockVecView[src]

pub fn as_uncle(&self) -> UncleBlockView[src]

pub fn transactions(&self) -> Vec<TransactionView>[src]

pub fn union_proposal_ids_iter(&self) -> impl Iterator<Item = ProposalShortId>[src]

pub fn union_proposal_ids(&self) -> HashSet<ProposalShortId>[src]

pub fn transaction(&self, index: usize) -> Option<TransactionView>[src]

pub fn output(&self, tx_index: usize, index: usize) -> Option<CellOutput>[src]

pub fn fake_hash(self, hash: Byte32) -> Self[src]

pub fn is_genesis(&self) -> bool[src]

pub fn calc_uncles_hash(&self) -> Byte32[src]

pub fn calc_proposals_hash(&self) -> Byte32[src]

pub fn calc_transactions_root(&self) -> Byte32[src]

pub fn calc_raw_transactions_root(&self) -> Byte32[src]

pub fn calc_witnesses_root(&self) -> Byte32[src]

impl BlockView[src]

pub fn new_unchecked(
    header: HeaderView,
    uncles: UncleBlockVecView,
    body: Vec<TransactionView>,
    proposals: ProposalShortIdVec
) -> Self
[src]

Trait Implementations

impl Clone for BlockView[src]

impl Debug for BlockView[src]

impl Display for BlockView[src]

impl Eq for BlockView[src]

impl Hash for BlockView[src]

impl PartialEq<BlockView> for BlockView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.