Enum zksync_vm2::addressing_modes::AnySource
source · pub enum AnySource {
Register1(Register1),
Immediate1(Immediate1),
AbsoluteStack(AbsoluteStack),
RelativeStack(RelativeStack),
AdvanceStackPointer(AdvanceStackPointer),
CodePage(CodePage),
}
Expand description
All supported addressing modes for the first source argument.
Variants§
Register1(Register1)
Register mode.
Immediate1(Immediate1)
Immediate mode.
AbsoluteStack(AbsoluteStack)
Absolute stack addressing.
RelativeStack(RelativeStack)
Relative stack addressing.
AdvanceStackPointer(AdvanceStackPointer)
Relative stack addressing that updates the stack pointer on access.
CodePage(CodePage)
Addressing into the code page of the executing contract.
Trait Implementations§
source§impl From<AbsoluteStack> for AnySource
impl From<AbsoluteStack> for AnySource
source§fn from(v: AbsoluteStack) -> AnySource
fn from(v: AbsoluteStack) -> AnySource
Converts to this type from the input type.
source§impl From<AdvanceStackPointer> for AnySource
impl From<AdvanceStackPointer> for AnySource
source§fn from(v: AdvanceStackPointer) -> AnySource
fn from(v: AdvanceStackPointer) -> AnySource
Converts to this type from the input type.
source§impl From<Immediate1> for AnySource
impl From<Immediate1> for AnySource
source§fn from(v: Immediate1) -> AnySource
fn from(v: Immediate1) -> AnySource
Converts to this type from the input type.
source§impl From<RelativeStack> for AnySource
impl From<RelativeStack> for AnySource
source§fn from(v: RelativeStack) -> AnySource
fn from(v: RelativeStack) -> AnySource
Converts to this type from the input type.
source§impl TryFrom<AnySource> for RegisterOrImmediate
impl TryFrom<AnySource> for RegisterOrImmediate
source§impl TryInto<AbsoluteStack> for AnySource
impl TryInto<AbsoluteStack> for AnySource
source§impl TryInto<AdvanceStackPointer> for AnySource
impl TryInto<AdvanceStackPointer> for AnySource
source§impl TryInto<Immediate1> for AnySource
impl TryInto<Immediate1> for AnySource
source§impl TryInto<RelativeStack> for AnySource
impl TryInto<RelativeStack> for AnySource
impl Copy for AnySource
Auto Trait Implementations§
impl Freeze for AnySource
impl RefUnwindSafe for AnySource
impl Send for AnySource
impl Sync for AnySource
impl Unpin for AnySource
impl UnwindSafe for AnySource
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
)