[][src]Struct evm::Machine

pub struct Machine { /* fields omitted */ }

Core execution layer for EVM.


impl Machine[src]

pub fn stack(&self) -> &Stack[src]

pub fn stack_mut(&mut self) -> &mut Stack[src]

pub fn memory(&self) -> &Memory[src]

pub fn memory_mut(&mut self) -> &mut Memory[src]

pub fn new(
    code: Rc<Vec<u8>>,
    data: Rc<Vec<u8>>,
    stack_limit: usize,
    memory_limit: usize
) -> Machine

pub fn exit(&mut self, reason: ExitReason)[src]

pub fn inspect(&self) -> Option<(Result<Opcode, ExternalOpcode>, &Stack)>[src]

pub fn return_value(&self) -> Vec<u8>[src]

pub fn run(&mut self) -> Capture<ExitReason, ExternalOpcode>[src]

pub fn step(&mut self) -> Result<(), Capture<ExitReason, ExternalOpcode>>[src]

Auto Trait Implementations

impl !Send for Machine

impl !Sync for Machine

impl Unpin for Machine

impl UnwindSafe for Machine

impl !RefUnwindSafe for Machine

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self