pub struct AsmOperand {
pub role: AsmRole,
pub memory: bool,
pub result: Option<Value>,
pub value: Option<Value>,
pub tied: Option<usize>,
}Expand description
One operand of an assembly statement, as its constraint describes it.
Fields§
§role: AsmRoleWhich side of the colon it was written on.
memory: boolWhether the assembly is handed the address of an object rather than a value.
result: Option<Value>The result it produces, for an output that travels in a register.
value: Option<Value>The value it reads, which every entry but a register output written = has.
An output written + is read as well as written, so it has both this and a result. An
output in memory has this and no result, because what the assembly was handed is the address
and the address is an operand like any other.
tied: Option<usize>The output an input written as a number shares its place with.
"0" is the whole of what a matching constraint says: this input and that output are one
place, so whatever the assembly leaves there is what the output gets.
Trait Implementations§
Source§impl Clone for AsmOperand
impl Clone for AsmOperand
Source§fn clone(&self) -> AsmOperand
fn clone(&self) -> AsmOperand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more