Struct evm::Stack [−][src]
pub struct Stack { /* fields omitted */ }
Expand description
EVM stack.
Implementations
Pop a value from the stack. If the stack is already empty, returns the
StackUnderflow
error.
Push a new value into the stack. If it will exceed the stack limit,
returns StackOverflow
error and leaves the stack unchanged.
Peek a value at given index for the stack, where the top of
the stack is at index 0
. If the index is too large,
StackError::Underflow
is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stack
impl UnwindSafe for Stack
Blanket Implementations
Mutably borrows from an owned value. Read more