pub enum Operand {
}Expand description
An operand of an instruction during compilation, before addresses are known.
Variants§
None
No operand.
Label(u32)
A label, resolved to a byte offset.
Loc(u32)
A local slot index.
Arg(u32)
An argument slot index.
VarRef(u32)
A closure variable index.
Const(u32)
A constant pool index.
Atom(String)
An atom (an interned name), stored as its UTF-8 text before interning.
U8(u8)
A small unsigned immediate.
I8(i8)
A small signed immediate.
U16(u16)
A medium unsigned immediate.
I16(i16)
A medium signed immediate.
I32(i32)
A signed 32-bit immediate.
U32(u32)
An unsigned 32-bit immediate.
Trait Implementations§
impl Eq for Operand
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Forget for Operand
impl Freeze for Operand
impl Move for Operand
impl RefUnwindSafe for Operand
impl Send for Operandwhere
RawVecInner: Send,
impl Sync for Operandwhere
RawVecInner: Sync,
impl Unpin for Operand
impl UnsafeUnpin for Operand
impl UnwindSafe for Operandwhere
RawVecInner: UnwindSafe,
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