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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.