pub struct AsmOperand {
pub name: Option<Symbol>,
pub constraint: StrId,
pub value: ExprId,
pub memory: bool,
}Expand description
One operand of an assembly statement.
Fields§
§name: Option<Symbol>The [name] it was written with, which is what %[name] in the template refers to.
constraint: StrIdThe constraint, as written, including the = or + of an output.
value: ExprIdThe operand itself, which is an lvalue for an output and for anything in memory, and a value everywhere else.
memory: boolWhether the assembly is given the address of an object rather than a value.
True for a constraint that allows nothing but memory and for a structure or a union, which is not something a register holds.
Trait Implementations§
Source§impl Clone for AsmOperand
impl Clone for AsmOperand
Source§fn clone(&self) -> AsmOperand
fn clone(&self) -> AsmOperand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AsmOperand
Source§impl Debug for AsmOperand
impl Debug for AsmOperand
impl Eq for AsmOperand
Source§impl PartialEq for AsmOperand
impl PartialEq for AsmOperand
impl StructuralPartialEq 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