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<u64> for u64

§

type Output = u64

source§

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

source§

impl SaturatingSub<u128> for u128

§

type Output = u128

source§

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

source§

impl SaturatingSub<u16> for u16

§

type Output = u16

source§

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

source§

impl SaturatingSub<u32> for u32

§

type Output = u32

source§

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

source§

impl SaturatingSub<u8> for u8

§

type Output = u8

source§

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

Implementors§

source§

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

§

type Output = Alpha<<C as SaturatingSub<C>>::Output, <T as SaturatingSub<T>>::Output>

source§

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

§

type Output = Luma<S, T>

source§

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

§

type Output = Rgb<S, T>

source§

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

§

type Output = Hsl<S, T>

source§

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

§

type Output = Hsv<S, T>

source§

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

§

type Output = Hwb<S, T>

source§

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

§

type Output = Luma<S, T>

source§

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

§

type Output = Rgb<S, T>

source§

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

§

type Output = Hsl<S, T>

source§

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

§

type Output = Hsv<S, T>

source§

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

§

type Output = Hwb<S, T>

source§

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

§

type Output = Okhsl<T>

source§

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

§

type Output = Okhsv<T>

source§

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

§

type Output = Okhwb<T>

source§

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

§

type Output = Oklab<T>

source§

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

§

type Output = Oklch<T>

source§

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

§

type Output = Okhsl<T>

source§

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

§

type Output = Okhsv<T>

source§

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

§

type Output = Okhwb<T>

source§

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

§

type Output = Oklab<T>

source§

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

§

type Output = Oklch<T>

source§

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

§

type Output = Alpha<<C as SaturatingSub<T>>::Output, <T as SaturatingSub<T>>::Output>

source§

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

§

type Output = LabHue<T>

source§

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

§

type Output = LuvHue<T>

source§

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

§

type Output = OklabHue<T>

source§

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

§

type Output = RgbHue<T>

source§

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

§

type Output = LabHue<T>

source§

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

§

type Output = LuvHue<T>

source§

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

§

type Output = OklabHue<T>

source§

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

§

type Output = RgbHue<T>

source§

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

§

type Output = Hsluv<Wp, T>

source§

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

§

type Output = Lab<Wp, T>

source§

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

§

type Output = Lch<Wp, T>

source§

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

§

type Output = Lchuv<Wp, T>

source§

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

§

type Output = Luv<Wp, T>

source§

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

§

type Output = Xyz<Wp, T>

source§

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

§

type Output = Yxy<Wp, T>

source§

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

§

type Output = Hsluv<Wp, T>

source§

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

§

type Output = Lab<Wp, T>

source§

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

§

type Output = Lch<Wp, T>

source§

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

§

type Output = Lchuv<Wp, T>

source§

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

§

type Output = Luv<Wp, T>

source§

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

§

type Output = Xyz<Wp, T>

source§

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

§

type Output = Yxy<Wp, T>