palette::num

Trait PartialCmp

Source
pub trait PartialCmp: HasBoolMask {
    // Required methods
    fn lt(&self, other: &Self) -> Self::Mask;
    fn lt_eq(&self, other: &Self) -> Self::Mask;
    fn eq(&self, other: &Self) -> Self::Mask;
    fn neq(&self, other: &Self) -> Self::Mask;
    fn gt_eq(&self, other: &Self) -> Self::Mask;
    fn gt(&self, other: &Self) -> Self::Mask;
}
Expand description

Trait for lanewise comparison of two values.

This is similar to PartialEq and PartialOrd, except that it returns a Boolean mask instead of bool or Ordering.

Required Methods§

Source

fn lt(&self, other: &Self) -> Self::Mask

Compares self < other.

Source

fn lt_eq(&self, other: &Self) -> Self::Mask

Compares self <= other.

Source

fn eq(&self, other: &Self) -> Self::Mask

Compares self == other.

Source

fn neq(&self, other: &Self) -> Self::Mask

Compares self != other.

Source

fn gt_eq(&self, other: &Self) -> Self::Mask

Compares self >= other.

Source

fn gt(&self, other: &Self) -> Self::Mask

Compares self > other.

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.

Implementations on Foreign Types§

Source§

impl PartialCmp for f32

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for f64

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for i8

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for i16

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for i32

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for i64

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for i128

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for u8

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for u16

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for u32

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for u64

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Source§

impl PartialCmp for u128

Source§

fn lt(&self, other: &Self) -> Self::Mask

Source§

fn lt_eq(&self, other: &Self) -> Self::Mask

Source§

fn eq(&self, other: &Self) -> Self::Mask

Source§

fn neq(&self, other: &Self) -> Self::Mask

Source§

fn gt_eq(&self, other: &Self) -> Self::Mask

Source§

fn gt(&self, other: &Self) -> Self::Mask

Implementors§