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.

Object Safety§

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§