pub enum Operand {
Value(ValueId),
Constant(Constant),
}
Expand description
An operand for an instruction or some other kind of operation.
Variants§
Value(ValueId)
The id of a value defined in an earlier statement.
Constant(Constant)
A literal constant value.
Trait Implementations§
impl Copy for Operand
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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