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 duplicate 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 for OperandMode
impl PartialEq for OperandMode
impl StructuralPartialEq for OperandMode
Auto Trait Implementations§
impl Freeze for OperandMode
impl RefUnwindSafe for OperandMode
impl Send for OperandMode
impl Sync for OperandMode
impl Unpin for OperandMode
impl UnwindSafe for OperandMode
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