[][src]Struct memchain::Block

pub struct Block<'bc> {
    pub base_gas: u64,
    pub height: u64,
    pub state: HashMap<Address, Cow<'bc, Account>>,
    pub completed_transactions: Vec<Receipt>,
}

Fields

base_gas: u64height: u64state: HashMap<Address, Cow<'bc, Account>>completed_transactions: Vec<Receipt>

Methods

impl<'bc> Block<'bc>[src]

pub fn new(
    height: u64,
    state: HashMap<Address, Cow<'bc, Account>>,
    base_gas: u64
) -> Self
[src]

Trait Implementations

impl<'bc> Block for Block<'bc>[src]

impl<'bc> Debug for Block<'bc>[src]

impl<'bc> Eq for Block<'bc>[src]

impl<'bc> PartialEq<Block<'bc>> for Block<'bc>[src]

impl<'bc> StructuralEq for Block<'bc>[src]

impl<'bc> StructuralPartialEq for Block<'bc>[src]

Auto Trait Implementations

impl<'bc> RefUnwindSafe for Block<'bc>

impl<'bc> Send for Block<'bc>

impl<'bc> Sync for Block<'bc>

impl<'bc> Unpin for Block<'bc>

impl<'bc> UnwindSafe for Block<'bc>

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.