Struct cranelift_codegen::isa::OperandConstraint
source · [−]pub struct OperandConstraint {
pub kind: ConstraintKind,
pub regclass: RegClass,
}
Expand description
Register constraint for a single value operand or instruction result.
Fields
kind: ConstraintKind
The kind of constraint.
regclass: RegClass
The register class of the operand.
This applies to all kinds of constraints, but with slightly different meaning.
Implementations
Trait Implementations
sourceimpl Debug for OperandConstraint
impl Debug for OperandConstraint
sourceimpl PartialEq<OperandConstraint> for OperandConstraint
impl PartialEq<OperandConstraint> for OperandConstraint
sourcefn eq(&self, other: &OperandConstraint) -> bool
fn eq(&self, other: &OperandConstraint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OperandConstraint) -> bool
fn ne(&self, other: &OperandConstraint) -> bool
This method tests for !=
.
impl StructuralPartialEq for OperandConstraint
Auto Trait Implementations
impl RefUnwindSafe for OperandConstraint
impl Send for OperandConstraint
impl Sync for OperandConstraint
impl Unpin for OperandConstraint
impl UnwindSafe for OperandConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more