[][src]Struct memchain::Memchain

pub struct Memchain<'bc> {
    pub name: String,
    pub blocks: Vec<Block<'bc>>,
    pub base_gas: u64,
}

Fields

name: Stringblocks: Vec<Block<'bc>>base_gas: u64

Methods

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

pub fn new<S: AsRef<str>>(
    name: S,
    genesis_state: HashMap<Address, Cow<'bc, Account>>,
    base_gas: u64
) -> Self
[src]

pub fn create_block(&mut self) -> &mut Block<'bc>[src]

Trait Implementations

impl<'bc> Blockchain for Memchain<'bc>[src]

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

Auto Trait Implementations

impl<'bc> RefUnwindSafe for Memchain<'bc>

impl<'bc> Send for Memchain<'bc>

impl<'bc> Sync for Memchain<'bc>

impl<'bc> Unpin for Memchain<'bc>

impl<'bc> UnwindSafe for Memchain<'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.