pub struct BodyView<'a> { /* private fields */ }
Expand description

View onto block rlp.

Implementations

Creates new view onto block body from rlp. Use the view! macro to create this view in order to capture debugging info.

Example
#[macro_use]
extern crate common_types as types;

use types::views::{BodyView};

fn main() {
let bytes : &[u8] = &[];
let body_view = view!(BodyView, bytes);
}

Return reference to underlaying rlp.

Return List of transactions in given block.

Return List of transactions with additional localization info.

Return the raw rlp for the transactions in the given block.

Return number of transactions in given block, without deserializing them.

Return List of transactions in given block.

Return transaction hashes.

Returns transaction at given index without deserializing unnecessary data.

Returns localized transaction at given index.

Returns raw rlp for the uncles in the given block

Return list of uncles of given block.

Return number of uncles in given block, without deserializing them.

Return List of transactions in given block.

Return list of uncle hashes of given block.

Return nth uncle.

Return nth uncle rlp.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.