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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.