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