Struct evm::Stack [] [src]

pub struct Stack { /* fields omitted */ }

Represents an EVM stack.

Methods

impl Stack
[src]

[src]

Check a pop-push cycle. If the check succeeded, push, pop, set, peek within the limit should not fail.

[src]

Push a new value to the stack.

[src]

Pop a value from the stack.

[src]

Set 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.

[src]

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.

[src]

Get the current stack length.

Trait Implementations

impl Default for Stack
[src]

[src]

Returns the "default value" for a type. Read more