Struct blocks_iterator::BlockExtra[][src]

pub struct BlockExtra {
    pub block: Block,
    pub block_hash: BlockHash,
    pub size: u32,
    pub next: Vec<BlockHash>,
    pub height: u32,
    pub outpoint_values: HashMap<OutPoint, TxOut>,
    pub tx_hashes: HashSet<Txid>,
}

Fields

block: Blockblock_hash: BlockHashsize: u32next: Vec<BlockHash>height: u32outpoint_values: HashMap<OutPoint, TxOut>tx_hashes: HashSet<Txid>

Implementations

impl BlockExtra[src]

pub fn average_fee(&self) -> f64[src]

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

pub fn tx_fee(&self, tx: &Transaction) -> u64[src]

Trait Implementations

impl Debug for BlockExtra[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, 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.