pub enum Operand {
Register {
operand: RegisterOperand,
span: Span,
},
Immediate {
operand: Immediate,
span: Span,
},
Symbol {
name: String,
span: Span,
},
SymbolOffset {
symbol: String,
offset: Immediate,
span: Span,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl PtxParser for Operand
impl PtxParser for Operand
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Returns a parser function that can parse an instance of
Self.Source§impl PtxUnparser for Operand
impl PtxUnparser for Operand
Source§impl TreeDisplay for Operand
impl TreeDisplay for Operand
Source§fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
Display this node in tree format. Read more
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