Struct evmil::evm::AbstractStack

source ·
pub struct AbstractStack<T: PartialEq> { /* private fields */ }

Implementations§

Construct an empty stack.

Determine possible lengths of the stack as an interval

Peek nth item on the stack (where 0 is top).

Push an iterm onto this stack.

Determine the minimum length of any stack represented by this abstract stack.

Determine the maximum length of any stack represented by this abstract stack.

Access the array of concrete values represented by this stack (i.e. the upper portion of the stack).

Set ith item from the top on this stack. Thus, 0 is the top of the stack, etc.

Join two abstract stacks together.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more

Merge an abstract stack into this stack, whilst reporting whether this stack changed or not.

This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Determine number of items on stack.

Peek nth item on the stack (where 0 is top).

Push an iterm onto this stack.

Pop n items of the stack.

Set nth item on stack

Underlying machine word this stack operates on. In a concrete EVM, this would be w256 or some other concrete implementation.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.