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§
Object Safety§
This trait is not object safe.