evm_opcodes

Trait OpCode

source
pub trait OpCode: From<u8> + Into<u8> {
    // Required methods
    fn stack_in(&self) -> u16;
    fn stack_out(&self) -> u16;
    fn since(&self) -> Upgrade;
    fn group(&self) -> Group;
    fn gas(&self) -> u16;
}
Expand description

Ethereum virtual machine opcode.

Required Methods§

source

fn stack_in(&self) -> u16

The stack input count.

source

fn stack_out(&self) -> u16

The stack output count.

source

fn since(&self) -> Upgrade

The OpCode is available since.

source

fn group(&self) -> Group

The group of the OpCode.

source

fn gas(&self) -> u16

The basic gas cost of the OpCode.

Object Safety§

This trait is not object safe.

Implementors§