pub enum Operand {
Register(RegisterOperand),
Immediate(Immediate),
Symbol(String),
SymbolOffset(String, Immediate),
}Variants§
Register(RegisterOperand)
%r1
Immediate(Immediate)
0xffff
Symbol(String)
foo
SymbolOffset(String, Immediate)
foo + 4 (symbol + immediate offset)
Trait Implementations§
Source§impl PtxParser for Operand
impl PtxParser for Operand
fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
Source§impl PtxUnparser for Operand
impl PtxUnparser for Operand
impl Eq for Operand
impl StructuralPartialEq 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