Trait zksync_vm2_interface::OpcodeType

source ·
pub trait OpcodeType {
    const VALUE: Opcode;
}
Expand description

Trait mapping opcodes as types to the corresponding variants of the Opcode enum.

Required Associated Constants§

source

const VALUE: Opcode

Opcode variant corresponding to this opcode type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl OpcodeType for Add

source§

const VALUE: Opcode = Opcode::Add

source§

impl OpcodeType for And

source§

const VALUE: Opcode = Opcode::And

source§

impl OpcodeType for AuxHeapRead

source§

const VALUE: Opcode = Opcode::AuxHeapRead

source§

impl OpcodeType for AuxHeapWrite

source§

const VALUE: Opcode = Opcode::AuxHeapWrite

source§

impl OpcodeType for AuxMutating0

source§

const VALUE: Opcode = Opcode::AuxMutating0

source§

impl OpcodeType for Caller

source§

const VALUE: Opcode = Opcode::Caller

source§

impl OpcodeType for CodeAddress

source§

const VALUE: Opcode = Opcode::CodeAddress

source§

impl OpcodeType for ContextMeta

source§

const VALUE: Opcode = Opcode::ContextMeta

source§

impl OpcodeType for ContextU128

source§

const VALUE: Opcode = Opcode::ContextU128

source§

impl OpcodeType for Decommit

source§

const VALUE: Opcode = Opcode::Decommit

source§

impl OpcodeType for Div

source§

const VALUE: Opcode = Opcode::Div

source§

impl OpcodeType for ErgsLeft

source§

const VALUE: Opcode = Opcode::ErgsLeft

source§

impl OpcodeType for Event

source§

const VALUE: Opcode = Opcode::Event

source§

impl OpcodeType for HeapRead

source§

const VALUE: Opcode = Opcode::HeapRead

source§

impl OpcodeType for HeapWrite

source§

const VALUE: Opcode = Opcode::HeapWrite

source§

impl OpcodeType for IncrementTxNumber

source§

const VALUE: Opcode = Opcode::IncrementTxNumber

source§

impl OpcodeType for Jump

source§

const VALUE: Opcode = Opcode::Jump

source§

impl OpcodeType for L2ToL1Message

source§

const VALUE: Opcode = Opcode::L2ToL1Message

source§

impl OpcodeType for Mul

source§

const VALUE: Opcode = Opcode::Mul

source§

impl OpcodeType for NearCall

source§

const VALUE: Opcode = Opcode::NearCall

source§

impl OpcodeType for Nop

source§

const VALUE: Opcode = Opcode::Nop

source§

impl OpcodeType for Or

source§

const VALUE: Opcode = Opcode::Or

source§

impl OpcodeType for PointerAdd

source§

const VALUE: Opcode = Opcode::PointerAdd

source§

impl OpcodeType for PointerPack

source§

const VALUE: Opcode = Opcode::PointerPack

source§

impl OpcodeType for PointerRead

source§

const VALUE: Opcode = Opcode::PointerRead

source§

impl OpcodeType for PointerShrink

source§

const VALUE: Opcode = Opcode::PointerShrink

source§

impl OpcodeType for PointerSub

source§

const VALUE: Opcode = Opcode::PointerSub

source§

impl OpcodeType for PrecompileCall

source§

const VALUE: Opcode = Opcode::PrecompileCall

source§

impl OpcodeType for RotateLeft

source§

const VALUE: Opcode = Opcode::RotateLeft

source§

impl OpcodeType for RotateRight

source§

const VALUE: Opcode = Opcode::RotateRight

source§

impl OpcodeType for SP

source§

const VALUE: Opcode = Opcode::SP

source§

impl OpcodeType for SetContextU128

source§

const VALUE: Opcode = Opcode::SetContextU128

source§

impl OpcodeType for ShiftLeft

source§

const VALUE: Opcode = Opcode::ShiftLeft

source§

impl OpcodeType for ShiftRight

source§

const VALUE: Opcode = Opcode::ShiftRight

source§

impl OpcodeType for StorageRead

source§

const VALUE: Opcode = Opcode::StorageRead

source§

impl OpcodeType for StorageWrite

source§

const VALUE: Opcode = Opcode::StorageWrite

source§

impl OpcodeType for Sub

source§

const VALUE: Opcode = Opcode::Sub

source§

impl OpcodeType for This

source§

const VALUE: Opcode = Opcode::This

source§

impl OpcodeType for TransientStorageRead

source§

const VALUE: Opcode = Opcode::TransientStorageRead

source§

impl OpcodeType for TransientStorageWrite

source§

const VALUE: Opcode = Opcode::TransientStorageWrite

source§

impl OpcodeType for Xor

source§

const VALUE: Opcode = Opcode::Xor

source§

impl<M: TypeLevelCallingMode> OpcodeType for FarCall<M>

source§

impl<T: TypeLevelReturnType> OpcodeType for Ret<T>