Module interpreter
cast
1.1.0
Module interpreter
Module Items
Modules
Structs
Constants
Functions
In cast::
revm::
interpreter
Modules
gas
instructions
interpreter
interpreter_action
opcode
primitives
Macros
as_isize_saturated
as_u64_saturated
as_usize_or_fail
as_usize_or_fail_ret
as_usize_saturated
check
gas
gas_or_fail
pop
pop_address
pop_address_ret
pop_ret
pop_top
push
push_b256
refund
require_eof
require_init_eof
require_non_staticcall
resize_memory
return_error
return_ok
return_revert
Structs
AccountLoad
CallInputs
CallOutcome
Contract
CreateInputs
CreateOutcome
DummyHost
EOFCreateInputs
Eip7702CodeLoad
FunctionReturnFrame
FunctionStack
Gas
Interpreter
InterpreterResult
OpCode
SStoreResult
SelfDestructResult
SharedMemory
Stack
StateLoad
Enums
CallScheme
CallValue
CreateScheme
EOFCreateKind
InstructionResult
InternalResult
InterpreterAction
SuccessOrHalt
Constants
EMPTY_SHARED_MEMORY
MAX_CODE_SIZE
MAX_INITCODE_SIZE
OPCODE_INFO_JUMPTABLE
STACK_LIMIT
Traits
Host
Functions
num_words
Type Aliases
Instruction
cast
::
revm
::
interpreter
Module
interpreter
Copy item path
Settings
Help
Summary
Modules
§
analysis
serde
Structs
§
Contract
EVM contract information.
Interpreter
EVM bytecode interpreter.
Interpreter
Result
The result of an interpreter operation.
Shared
Memory
A sequential memory shared between calls, which uses a
Vec
for internal representation. A
SharedMemory
instance should always be obtained using the
new
static method to ensure memory safety.
Stack
EVM stack with
STACK_LIMIT
capacity of words.
Constants
§
EMPTY_
SHARED_
MEMORY
Empty shared memory.
STACK_
LIMIT
EVM interpreter stack limit.
Functions
§
num_
words
Returns number of words what would fit to provided number of bytes, i.e. it rounds up the number bytes to number of words.
resize_
memory
Resize the memory to the new size. Returns whether the gas was enough to resize the memory.