Trait cosmic::cosmic_theme::palette::num::SaturatingSub

source ·
pub trait SaturatingSub<Rhs = Self> {
    type Output;

    // Required method
    fn saturating_sub(self, other: Rhs) -> Self::Output;
}
Expand description

Saturating subtraction operation.

Required Associated Types§

source

type Output

The resulting type.

Required Methods§

source

fn saturating_sub(self, other: Rhs) -> Self::Output

Returns the difference of self and other, but saturates instead of overflowing.

Implementations on Foreign Types§

source§

impl SaturatingSub for u8

source§

type Output = u8

source§

fn saturating_sub(self, other: u8) -> u8

source§

impl SaturatingSub for u16

source§

type Output = u16

source§

fn saturating_sub(self, other: u16) -> u16

source§

impl SaturatingSub for u32

source§

type Output = u32

source§

fn saturating_sub(self, other: u32) -> u32

source§

impl SaturatingSub for u64

source§

type Output = u64

source§

fn saturating_sub(self, other: u64) -> u64

source§

impl SaturatingSub for u128

Implementors§

source§

impl<C, T> SaturatingSub for Alpha<C, T>

source§

impl<S, T> SaturatingSub for Luma<S, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Luma<S, T>

source§

impl<S, T> SaturatingSub for Rgb<S, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Rgb<S, T>

source§

impl<S, T> SaturatingSub for Hsl<S, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Hsl<S, T>

source§

impl<S, T> SaturatingSub for Hsv<S, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Hsv<S, T>

source§

impl<S, T> SaturatingSub for Hwb<S, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Hwb<S, T>

source§

impl<S, T> SaturatingSub<T> for Luma<S, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Luma<S, T>

source§

impl<S, T> SaturatingSub<T> for Rgb<S, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Rgb<S, T>

source§

impl<S, T> SaturatingSub<T> for Hsl<S, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Hsl<S, T>

source§

impl<S, T> SaturatingSub<T> for Hsv<S, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Hsv<S, T>

source§

impl<S, T> SaturatingSub<T> for Hwb<S, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Hwb<S, T>

source§

impl<T> SaturatingSub for Cam16Jch<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Jmh<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Jsh<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Qch<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Qmh<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Qsh<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16UcsJab<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16UcsJmh<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Cam16Hue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for LabHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for LuvHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Okhsl<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Okhsv<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Okhwb<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Oklab<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for OklabHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for Oklch<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub for RgbHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub<T> for Cam16Jch<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Jmh<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Jsh<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Qch<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Qmh<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Qsh<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16UcsJab<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16UcsJmh<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Cam16Hue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub<T> for LabHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub<T> for LuvHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub<T> for Okhsl<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Okhsv<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Okhwb<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for Oklab<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for OklabHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T> SaturatingSub<T> for Oklch<T>
where T: SaturatingSub<Output = T> + Clone,

source§

impl<T> SaturatingSub<T> for RgbHue<T>
where T: SaturatingSub<Output = T>,

source§

impl<T, C> SaturatingSub<T> for Alpha<C, T>
where T: SaturatingSub + Clone, C: SaturatingSub<T>,

source§

impl<Wp, T> SaturatingSub for Hsluv<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Hsluv<Wp, T>

source§

impl<Wp, T> SaturatingSub for Lab<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Lab<Wp, T>

source§

impl<Wp, T> SaturatingSub for Lch<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Lch<Wp, T>

source§

impl<Wp, T> SaturatingSub for Lchuv<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Lchuv<Wp, T>

source§

impl<Wp, T> SaturatingSub for Luv<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Luv<Wp, T>

source§

impl<Wp, T> SaturatingSub for Xyz<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Xyz<Wp, T>

source§

impl<Wp, T> SaturatingSub for Yxy<Wp, T>
where T: SaturatingSub<Output = T>,

source§

type Output = Yxy<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Hsluv<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Hsluv<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Lab<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Lab<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Lch<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Lch<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Lchuv<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Lchuv<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Luv<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Luv<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Xyz<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Xyz<Wp, T>

source§

impl<Wp, T> SaturatingSub<T> for Yxy<Wp, T>
where T: SaturatingSub<Output = T> + Clone,

source§

type Output = Yxy<Wp, T>