Enum zksync_vm2_interface::Opcode
source · pub enum Opcode {
Show 43 variants
Nop,
Add,
Sub,
And,
Or,
Xor,
ShiftLeft,
ShiftRight,
RotateLeft,
RotateRight,
Mul,
Div,
NearCall,
FarCall(CallingMode),
Ret(ReturnType),
Jump,
Event,
L2ToL1Message,
Decommit,
This,
Caller,
CodeAddress,
ErgsLeft,
SP,
ContextMeta,
ContextU128,
SetContextU128,
IncrementTxNumber,
AuxMutating0,
PrecompileCall,
HeapRead,
HeapWrite,
AuxHeapRead,
AuxHeapWrite,
PointerRead,
PointerAdd,
PointerSub,
PointerPack,
PointerShrink,
StorageRead,
StorageWrite,
TransientStorageRead,
TransientStorageWrite,
}
Expand description
All supported EraVM opcodes in a single enumeration.
Variants§
Nop
Add
Sub
And
Or
Xor
ShiftLeft
ShiftRight
RotateLeft
RotateRight
Mul
Div
NearCall
FarCall(CallingMode)
Ret(ReturnType)
Jump
Event
L2ToL1Message
Decommit
This
Caller
CodeAddress
ErgsLeft
SP
ContextMeta
ContextU128
SetContextU128
IncrementTxNumber
AuxMutating0
PrecompileCall
HeapRead
HeapWrite
AuxHeapRead
AuxHeapWrite
PointerRead
PointerAdd
PointerSub
PointerPack
PointerShrink
StorageRead
StorageWrite
TransientStorageRead
TransientStorageWrite
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)