palette::num

Trait SaturatingAdd

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

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

Saturating addition operation.

Required Associated Types§

source

type Output

The resulting type.

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl SaturatingAdd for u8

source§

type Output = u8

source§

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

source§

impl SaturatingAdd for u16

source§

type Output = u16

source§

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

source§

impl SaturatingAdd for u32

source§

type Output = u32

source§

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

source§

impl SaturatingAdd for u64

source§

type Output = u64

source§

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

source§

impl SaturatingAdd for u128

source§

type Output = u128

source§

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

Implementors§

source§

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

source§

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

source§

type Output = Luma<S, T>

source§

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

source§

type Output = Rgb<S, T>

source§

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

source§

type Output = Hsl<S, T>

source§

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

source§

type Output = Hsv<S, T>

source§

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

source§

type Output = Hwb<S, T>

source§

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

source§

type Output = Luma<S, T>

source§

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

source§

type Output = Rgb<S, T>

source§

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

source§

type Output = Hsl<S, T>

source§

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

source§

type Output = Hsv<S, T>

source§

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

source§

type Output = Hwb<S, T>

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<T: SaturatingAdd<Output = T>> SaturatingAdd for Cam16Hue<T>

source§

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

source§

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

source§

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

source§

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

source§

impl<T: SaturatingAdd<Output = T>> SaturatingAdd<T> for Cam16Hue<T>

source§

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

source§

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

source§

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

source§

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

source§

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

source§

type Output = Hsluv<Wp, T>

source§

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

source§

type Output = Lab<Wp, T>

source§

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

source§

type Output = Lch<Wp, T>

source§

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

source§

type Output = Lchuv<Wp, T>

source§

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

source§

type Output = Luv<Wp, T>

source§

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

source§

type Output = Xyz<Wp, T>

source§

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

source§

type Output = Yxy<Wp, T>

source§

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

source§

type Output = Hsluv<Wp, T>

source§

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

source§

type Output = Lab<Wp, T>

source§

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

source§

type Output = Lch<Wp, T>

source§

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

source§

type Output = Lchuv<Wp, T>

source§

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

source§

type Output = Luv<Wp, T>

source§

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

source§

type Output = Xyz<Wp, T>

source§

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

source§

type Output = Yxy<Wp, T>