pub struct AsmOperand {
pub name: Option<String>,
pub reg: AsmReg,
pub kind: AsmOperandKind,
pub ty: Ty,
pub range: SourceRange,
}Expand description
One operand of an AsmStmt.
Fields§
§name: Option<String>The asm! name the template refers to it by — o and the GCC
operand number — or None for an explicit register, which asm!
does not let a template name (sema writes the register itself).
reg: AsmRegWhere the value lives.
kind: AsmOperandKindThe direction, and the C side of it.
ty: TyThe C type of the value, which is what the asm! operand has.
range: SourceRangeWhere the operand was written.
Implementations§
Trait Implementations§
Source§impl Clone for AsmOperand
impl Clone for AsmOperand
Auto Trait Implementations§
impl Freeze for AsmOperand
impl RefUnwindSafe for AsmOperand
impl Send for AsmOperand
impl Sync for AsmOperand
impl Unpin for AsmOperand
impl UnsafeUnpin for AsmOperand
impl UnwindSafe for AsmOperand
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