pub enum CmpOp {
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
}Variants§
Implementations§
Source§impl CmpOp
impl CmpOp
Sourcepub fn holds<T: PartialOrd>(self, a: T, b: T) -> bool
pub fn holds<T: PartialOrd>(self, a: T, b: T) -> bool
Whether the op holds between two values. This is the whole definition of the op, which is why it is public: a caller that rewrites a predicate before compiling it can check the rewrite against the kernel’s own rule rather than against a copy of it.
Trait Implementations§
impl Copy for CmpOp
impl Eq for CmpOp
impl StructuralPartialEq for CmpOp
Auto Trait Implementations§
impl Forget for CmpOp
impl Freeze for CmpOp
impl Move for CmpOp
impl RefUnwindSafe for CmpOp
impl Send for CmpOp
impl Sync for CmpOp
impl Unpin for CmpOp
impl UnsafeUnpin for CmpOp
impl UnwindSafe for CmpOp
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