Trait cranelift_codegen::ir::condcodes::CondCode
source · pub trait CondCode: Copy {
// Required methods
fn complement(self) -> Self;
fn swap_args(self) -> Self;
}
Expand description
Common traits of condition codes.
Required Methods§
sourcefn complement(self) -> Self
fn complement(self) -> Self
Get the complemented condition code of self
.
The complemented condition code produces the opposite result for all comparisons.
That is, cmp CC, x, y
is true if and only if cmp CC.complement(), x, y
is false.
Object Safety§
This trait is not object safe.