Trait cosmic::cosmic_theme::palette::num::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: &f32) -> <f32 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &f32) -> <f32 as HasBoolMask>::Mask

source§

fn eq(&self, other: &f32) -> <f32 as HasBoolMask>::Mask

source§

fn neq(&self, other: &f32) -> <f32 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &f32) -> <f32 as HasBoolMask>::Mask

source§

fn gt(&self, other: &f32) -> <f32 as HasBoolMask>::Mask

source§

impl PartialCmp for f64

source§

fn lt(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

fn eq(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

fn neq(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

fn gt(&self, other: &f64) -> <f64 as HasBoolMask>::Mask

source§

impl PartialCmp for i8

source§

fn lt(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

fn eq(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

fn neq(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

fn gt(&self, other: &i8) -> <i8 as HasBoolMask>::Mask

source§

impl PartialCmp for i16

source§

fn lt(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

fn eq(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

fn neq(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

fn gt(&self, other: &i16) -> <i16 as HasBoolMask>::Mask

source§

impl PartialCmp for i32

source§

fn lt(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

fn eq(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

fn neq(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

fn gt(&self, other: &i32) -> <i32 as HasBoolMask>::Mask

source§

impl PartialCmp for i64

source§

fn lt(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

fn eq(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

fn neq(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

fn gt(&self, other: &i64) -> <i64 as HasBoolMask>::Mask

source§

impl PartialCmp for i128

source§

fn lt(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

fn eq(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

fn neq(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

fn gt(&self, other: &i128) -> <i128 as HasBoolMask>::Mask

source§

impl PartialCmp for u8

source§

fn lt(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

fn eq(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

fn neq(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

fn gt(&self, other: &u8) -> <u8 as HasBoolMask>::Mask

source§

impl PartialCmp for u16

source§

fn lt(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

fn eq(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

fn neq(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

fn gt(&self, other: &u16) -> <u16 as HasBoolMask>::Mask

source§

impl PartialCmp for u32

source§

fn lt(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

fn eq(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

fn neq(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

fn gt(&self, other: &u32) -> <u32 as HasBoolMask>::Mask

source§

impl PartialCmp for u64

source§

fn lt(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

fn eq(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

fn neq(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

fn gt(&self, other: &u64) -> <u64 as HasBoolMask>::Mask

source§

impl PartialCmp for u128

source§

fn lt(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

source§

fn lt_eq(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

source§

fn eq(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

source§

fn neq(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

source§

fn gt_eq(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

source§

fn gt(&self, other: &u128) -> <u128 as HasBoolMask>::Mask

Implementors§