pub struct CondCode(/* private fields */);Expand description
A condition code, numbered by the target (for x86-64, the cc field of
Jcc/SETcc/CMOVcc; see x86_64::cond).
§Examples
use backend_lang::mir::CondCode;
use backend_lang::x86_64;
use isa_lang::x86_64::Cond;
let l = x86_64::cond(Cond::L);
assert_eq!(l, CondCode::new(12));
assert_eq!(x86_64::TARGET.cond_name(l), "l");Implementations§
Trait Implementations§
impl Copy for CondCode
impl Eq for CondCode
Source§impl Ord for CondCode
impl Ord for CondCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CondCode
impl PartialOrd for CondCode
impl StructuralPartialEq for CondCode
Auto Trait Implementations§
impl Freeze for CondCode
impl RefUnwindSafe for CondCode
impl Send for CondCode
impl Sync for CondCode
impl Unpin for CondCode
impl UnsafeUnpin for CondCode
impl UnwindSafe for CondCode
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