Enum fuel_etk_asm::ops::AbstractOp
source · pub enum AbstractOp {
Op(Op<Abstract>),
Label(String),
Push(Imm),
MacroDefinition(MacroDefinition),
Macro(InstructionMacroInvocation),
}
Expand description
Like an Op
, except it also supports virtual instructions.
In addition to the real EVM instructions, AbstractOp
also supports defining
labels, and pushing variable length immediate arguments.
Variants§
Op(Op<Abstract>)
A real Op
, as opposed to a label or variable sized push.
Label(String)
A label, which is a virtual instruction.
Push(Imm)
A variable sized push, which is a virtual instruction.
MacroDefinition(MacroDefinition)
A user-defined macro definition, which is a virtual instruction.
Macro(InstructionMacroInvocation)
A user-defined macro, which is a virtual instruction.
Implementations§
source§impl AbstractOp
impl AbstractOp
sourcepub fn new<O>(op: O) -> Selfwhere
O: Into<Op<Abstract>>,
pub fn new<O>(op: O) -> Selfwhere
O: Into<Op<Abstract>>,
Construct a new AbstractOp
from an Operation
.
Trait Implementations§
source§impl Clone for AbstractOp
impl Clone for AbstractOp
source§fn clone(&self) -> AbstractOp
fn clone(&self) -> AbstractOp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AbstractOp
impl Debug for AbstractOp
source§impl Display for AbstractOp
impl Display for AbstractOp
source§impl From<AbstractOp> for RawOp
impl From<AbstractOp> for RawOp
source§fn from(op: AbstractOp) -> Self
fn from(op: AbstractOp) -> Self
Converts to this type from the input type.
source§impl From<ExpressionMacroDefinition> for AbstractOp
impl From<ExpressionMacroDefinition> for AbstractOp
source§fn from(item: ExpressionMacroDefinition) -> Self
fn from(item: ExpressionMacroDefinition) -> Self
Converts to this type from the input type.
source§impl From<InstructionMacroDefinition> for AbstractOp
impl From<InstructionMacroDefinition> for AbstractOp
source§fn from(item: InstructionMacroDefinition) -> Self
fn from(item: InstructionMacroDefinition) -> Self
Converts to this type from the input type.
source§impl PartialEq<AbstractOp> for AbstractOp
impl PartialEq<AbstractOp> for AbstractOp
source§fn eq(&self, other: &AbstractOp) -> bool
fn eq(&self, other: &AbstractOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.