Enum go_types::OperandMode
source · pub enum OperandMode {
Invalid,
NoValue,
Builtin(Builtin),
TypeExpr,
Constant(Value),
Variable,
MapIndex,
Value,
CommaOk,
}
Expand description
An OperandMode specifies the (addressing) mode of an operand.
Variants§
Implementations§
source§impl OperandMode
impl OperandMode
pub fn constant_val(&self) -> Option<&Value>
pub fn builtin_id(&self) -> Option<Builtin>
Trait Implementations§
source§impl Clone for OperandMode
impl Clone for OperandMode
source§fn clone(&self) -> OperandMode
fn clone(&self) -> OperandMode
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 OperandMode
impl Debug for OperandMode
source§impl Display for OperandMode
impl Display for OperandMode
source§impl PartialEq<OperandMode> for OperandMode
impl PartialEq<OperandMode> for OperandMode
source§fn eq(&self, other: &OperandMode) -> bool
fn eq(&self, other: &OperandMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.