saturating

Struct Saturating

Source
#[repr(transparent)]
pub struct Saturating<T>(pub T);
Expand description

Provides intentionally-saturating arithmetic on T.

The underlying value can be retrieved through the .0 index of the Saturating tuple.

Tuple Fields§

§0: T

Trait Implementations§

Source§

impl Add<&Saturating<i128>> for &Saturating<i128>

Source§

type Output = <Saturating<i128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Add<Saturating<i128>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i128>> for Saturating<i128>

Source§

type Output = <Saturating<i128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Add<Saturating<i128>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i16>> for &Saturating<i16>

Source§

type Output = <Saturating<i16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Add<Saturating<i16>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i16>> for Saturating<i16>

Source§

type Output = <Saturating<i16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Add<Saturating<i16>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i32>> for &Saturating<i32>

Source§

type Output = <Saturating<i32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Add<Saturating<i32>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i32>> for Saturating<i32>

Source§

type Output = <Saturating<i32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Add<Saturating<i32>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i64>> for &Saturating<i64>

Source§

type Output = <Saturating<i64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Add<Saturating<i64>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i64>> for Saturating<i64>

Source§

type Output = <Saturating<i64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Add<Saturating<i64>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i8>> for &Saturating<i8>

Source§

type Output = <Saturating<i8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Add<Saturating<i8>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<i8>> for Saturating<i8>

Source§

type Output = <Saturating<i8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Add<Saturating<i8>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<isize>> for &Saturating<isize>

Source§

type Output = <Saturating<isize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Add<Saturating<isize>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<isize>> for Saturating<isize>

Source§

type Output = <Saturating<isize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Add<Saturating<isize>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u128>> for &Saturating<u128>

Source§

type Output = <Saturating<u128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Add<Saturating<u128>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u128>> for Saturating<u128>

Source§

type Output = <Saturating<u128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Add<Saturating<u128>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u16>> for &Saturating<u16>

Source§

type Output = <Saturating<u16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Add<Saturating<u16>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u16>> for Saturating<u16>

Source§

type Output = <Saturating<u16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Add<Saturating<u16>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u32>> for &Saturating<u32>

Source§

type Output = <Saturating<u32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Add<Saturating<u32>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u32>> for Saturating<u32>

Source§

type Output = <Saturating<u32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Add<Saturating<u32>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u64>> for &Saturating<u64>

Source§

type Output = <Saturating<u64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Add<Saturating<u64>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u64>> for Saturating<u64>

Source§

type Output = <Saturating<u64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Add<Saturating<u64>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u8>> for &Saturating<u8>

Source§

type Output = <Saturating<u8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Add<Saturating<u8>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<u8>> for Saturating<u8>

Source§

type Output = <Saturating<u8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Add<Saturating<u8>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<usize>> for &Saturating<usize>

Source§

type Output = <Saturating<usize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Add<Saturating<usize>>>::Output

Performs the + operation. Read more
Source§

impl Add<&Saturating<usize>> for Saturating<usize>

Source§

type Output = <Saturating<usize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Add<Saturating<usize>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<i128>> for &'a Saturating<i128>

Source§

type Output = <Saturating<i128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<i128>, ) -> <Saturating<i128> as Add<Saturating<i128>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<i16>> for &'a Saturating<i16>

Source§

type Output = <Saturating<i16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<i16>, ) -> <Saturating<i16> as Add<Saturating<i16>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<i32>> for &'a Saturating<i32>

Source§

type Output = <Saturating<i32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<i32>, ) -> <Saturating<i32> as Add<Saturating<i32>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<i64>> for &'a Saturating<i64>

Source§

type Output = <Saturating<i64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<i64>, ) -> <Saturating<i64> as Add<Saturating<i64>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<i8>> for &'a Saturating<i8>

Source§

type Output = <Saturating<i8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<i8>, ) -> <Saturating<i8> as Add<Saturating<i8>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<isize>> for &'a Saturating<isize>

Source§

type Output = <Saturating<isize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<isize>, ) -> <Saturating<isize> as Add<Saturating<isize>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<u128>> for &'a Saturating<u128>

Source§

type Output = <Saturating<u128> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<u128>, ) -> <Saturating<u128> as Add<Saturating<u128>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<u16>> for &'a Saturating<u16>

Source§

type Output = <Saturating<u16> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<u16>, ) -> <Saturating<u16> as Add<Saturating<u16>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<u32>> for &'a Saturating<u32>

Source§

type Output = <Saturating<u32> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<u32>, ) -> <Saturating<u32> as Add<Saturating<u32>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<u64>> for &'a Saturating<u64>

Source§

type Output = <Saturating<u64> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<u64>, ) -> <Saturating<u64> as Add<Saturating<u64>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<u8>> for &'a Saturating<u8>

Source§

type Output = <Saturating<u8> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<u8>, ) -> <Saturating<u8> as Add<Saturating<u8>>>::Output

Performs the + operation. Read more
Source§

impl<'a> Add<Saturating<usize>> for &'a Saturating<usize>

Source§

type Output = <Saturating<usize> as Add>::Output

The resulting type after applying the + operator.
Source§

fn add( self, other: Saturating<usize>, ) -> <Saturating<usize> as Add<Saturating<usize>>>::Output

Performs the + operation. Read more
Source§

impl Add for Saturating<i128>

Source§

type Output = Saturating<i128>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<i128>) -> Saturating<i128>

Performs the + operation. Read more
Source§

impl Add for Saturating<i16>

Source§

type Output = Saturating<i16>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<i16>) -> Saturating<i16>

Performs the + operation. Read more
Source§

impl Add for Saturating<i32>

Source§

type Output = Saturating<i32>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<i32>) -> Saturating<i32>

Performs the + operation. Read more
Source§

impl Add for Saturating<i64>

Source§

type Output = Saturating<i64>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<i64>) -> Saturating<i64>

Performs the + operation. Read more
Source§

impl Add for Saturating<i8>

Source§

type Output = Saturating<i8>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<i8>) -> Saturating<i8>

Performs the + operation. Read more
Source§

impl Add for Saturating<isize>

Source§

type Output = Saturating<isize>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<isize>) -> Saturating<isize>

Performs the + operation. Read more
Source§

impl Add for Saturating<u128>

Source§

type Output = Saturating<u128>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<u128>) -> Saturating<u128>

Performs the + operation. Read more
Source§

impl Add for Saturating<u16>

Source§

type Output = Saturating<u16>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<u16>) -> Saturating<u16>

Performs the + operation. Read more
Source§

impl Add for Saturating<u32>

Source§

type Output = Saturating<u32>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<u32>) -> Saturating<u32>

Performs the + operation. Read more
Source§

impl Add for Saturating<u64>

Source§

type Output = Saturating<u64>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<u64>) -> Saturating<u64>

Performs the + operation. Read more
Source§

impl Add for Saturating<u8>

Source§

type Output = Saturating<u8>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<u8>) -> Saturating<u8>

Performs the + operation. Read more
Source§

impl Add for Saturating<usize>

Source§

type Output = Saturating<usize>

The resulting type after applying the + operator.
Source§

fn add(self, other: Saturating<usize>) -> Saturating<usize>

Performs the + operation. Read more
Source§

impl AddAssign<&Saturating<i128>> for Saturating<i128>

Source§

fn add_assign(&mut self, other: &Saturating<i128>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<i16>> for Saturating<i16>

Source§

fn add_assign(&mut self, other: &Saturating<i16>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<i32>> for Saturating<i32>

Source§

fn add_assign(&mut self, other: &Saturating<i32>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<i64>> for Saturating<i64>

Source§

fn add_assign(&mut self, other: &Saturating<i64>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<i8>> for Saturating<i8>

Source§

fn add_assign(&mut self, other: &Saturating<i8>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<isize>> for Saturating<isize>

Source§

fn add_assign(&mut self, other: &Saturating<isize>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<u128>> for Saturating<u128>

Source§

fn add_assign(&mut self, other: &Saturating<u128>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<u16>> for Saturating<u16>

Source§

fn add_assign(&mut self, other: &Saturating<u16>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<u32>> for Saturating<u32>

Source§

fn add_assign(&mut self, other: &Saturating<u32>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<u64>> for Saturating<u64>

Source§

fn add_assign(&mut self, other: &Saturating<u64>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<u8>> for Saturating<u8>

Source§

fn add_assign(&mut self, other: &Saturating<u8>)

Performs the += operation. Read more
Source§

impl AddAssign<&Saturating<usize>> for Saturating<usize>

Source§

fn add_assign(&mut self, other: &Saturating<usize>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<i128>

Source§

fn add_assign(&mut self, other: Saturating<i128>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<i16>

Source§

fn add_assign(&mut self, other: Saturating<i16>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<i32>

Source§

fn add_assign(&mut self, other: Saturating<i32>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<i64>

Source§

fn add_assign(&mut self, other: Saturating<i64>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<i8>

Source§

fn add_assign(&mut self, other: Saturating<i8>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<isize>

Source§

fn add_assign(&mut self, other: Saturating<isize>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<u128>

Source§

fn add_assign(&mut self, other: Saturating<u128>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<u16>

Source§

fn add_assign(&mut self, other: Saturating<u16>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<u32>

Source§

fn add_assign(&mut self, other: Saturating<u32>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<u64>

Source§

fn add_assign(&mut self, other: Saturating<u64>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<u8>

Source§

fn add_assign(&mut self, other: Saturating<u8>)

Performs the += operation. Read more
Source§

impl AddAssign for Saturating<usize>

Source§

fn add_assign(&mut self, other: Saturating<usize>)

Performs the += operation. Read more
Source§

impl<T: Binary> Binary for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Clone> Clone for Saturating<T>

Source§

fn clone(&self) -> Saturating<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default> Default for Saturating<T>

Source§

fn default() -> Saturating<T>

Returns the “default value” for a type. Read more
Source§

impl<T: Display> Display for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Hash> Hash for Saturating<T>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: LowerHex> LowerHex for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul<&Saturating<i128>> for &Saturating<i128>

Source§

type Output = <Saturating<i128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Mul<Saturating<i128>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i128>> for Saturating<i128>

Source§

type Output = <Saturating<i128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Mul<Saturating<i128>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i16>> for &Saturating<i16>

Source§

type Output = <Saturating<i16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Mul<Saturating<i16>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i16>> for Saturating<i16>

Source§

type Output = <Saturating<i16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Mul<Saturating<i16>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i32>> for &Saturating<i32>

Source§

type Output = <Saturating<i32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Mul<Saturating<i32>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i32>> for Saturating<i32>

Source§

type Output = <Saturating<i32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Mul<Saturating<i32>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i64>> for &Saturating<i64>

Source§

type Output = <Saturating<i64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Mul<Saturating<i64>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i64>> for Saturating<i64>

Source§

type Output = <Saturating<i64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Mul<Saturating<i64>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i8>> for &Saturating<i8>

Source§

type Output = <Saturating<i8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Mul<Saturating<i8>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<i8>> for Saturating<i8>

Source§

type Output = <Saturating<i8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Mul<Saturating<i8>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<isize>> for &Saturating<isize>

Source§

type Output = <Saturating<isize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Mul<Saturating<isize>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<isize>> for Saturating<isize>

Source§

type Output = <Saturating<isize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Mul<Saturating<isize>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u128>> for &Saturating<u128>

Source§

type Output = <Saturating<u128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Mul<Saturating<u128>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u128>> for Saturating<u128>

Source§

type Output = <Saturating<u128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Mul<Saturating<u128>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u16>> for &Saturating<u16>

Source§

type Output = <Saturating<u16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Mul<Saturating<u16>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u16>> for Saturating<u16>

Source§

type Output = <Saturating<u16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Mul<Saturating<u16>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u32>> for &Saturating<u32>

Source§

type Output = <Saturating<u32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Mul<Saturating<u32>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u32>> for Saturating<u32>

Source§

type Output = <Saturating<u32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Mul<Saturating<u32>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u64>> for &Saturating<u64>

Source§

type Output = <Saturating<u64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Mul<Saturating<u64>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u64>> for Saturating<u64>

Source§

type Output = <Saturating<u64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Mul<Saturating<u64>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u8>> for &Saturating<u8>

Source§

type Output = <Saturating<u8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Mul<Saturating<u8>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<u8>> for Saturating<u8>

Source§

type Output = <Saturating<u8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Mul<Saturating<u8>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<usize>> for &Saturating<usize>

Source§

type Output = <Saturating<usize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Mul<Saturating<usize>>>::Output

Performs the * operation. Read more
Source§

impl Mul<&Saturating<usize>> for Saturating<usize>

Source§

type Output = <Saturating<usize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Mul<Saturating<usize>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<i128>> for &'a Saturating<i128>

Source§

type Output = <Saturating<i128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<i128>, ) -> <Saturating<i128> as Mul<Saturating<i128>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<i16>> for &'a Saturating<i16>

Source§

type Output = <Saturating<i16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<i16>, ) -> <Saturating<i16> as Mul<Saturating<i16>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<i32>> for &'a Saturating<i32>

Source§

type Output = <Saturating<i32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<i32>, ) -> <Saturating<i32> as Mul<Saturating<i32>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<i64>> for &'a Saturating<i64>

Source§

type Output = <Saturating<i64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<i64>, ) -> <Saturating<i64> as Mul<Saturating<i64>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<i8>> for &'a Saturating<i8>

Source§

type Output = <Saturating<i8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<i8>, ) -> <Saturating<i8> as Mul<Saturating<i8>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<isize>> for &'a Saturating<isize>

Source§

type Output = <Saturating<isize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<isize>, ) -> <Saturating<isize> as Mul<Saturating<isize>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<u128>> for &'a Saturating<u128>

Source§

type Output = <Saturating<u128> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<u128>, ) -> <Saturating<u128> as Mul<Saturating<u128>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<u16>> for &'a Saturating<u16>

Source§

type Output = <Saturating<u16> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<u16>, ) -> <Saturating<u16> as Mul<Saturating<u16>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<u32>> for &'a Saturating<u32>

Source§

type Output = <Saturating<u32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<u32>, ) -> <Saturating<u32> as Mul<Saturating<u32>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<u64>> for &'a Saturating<u64>

Source§

type Output = <Saturating<u64> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<u64>, ) -> <Saturating<u64> as Mul<Saturating<u64>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<u8>> for &'a Saturating<u8>

Source§

type Output = <Saturating<u8> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<u8>, ) -> <Saturating<u8> as Mul<Saturating<u8>>>::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<Saturating<usize>> for &'a Saturating<usize>

Source§

type Output = <Saturating<usize> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul( self, other: Saturating<usize>, ) -> <Saturating<usize> as Mul<Saturating<usize>>>::Output

Performs the * operation. Read more
Source§

impl Mul for Saturating<i128>

Source§

type Output = Saturating<i128>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<i128>) -> Saturating<i128>

Performs the * operation. Read more
Source§

impl Mul for Saturating<i16>

Source§

type Output = Saturating<i16>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<i16>) -> Saturating<i16>

Performs the * operation. Read more
Source§

impl Mul for Saturating<i32>

Source§

type Output = Saturating<i32>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<i32>) -> Saturating<i32>

Performs the * operation. Read more
Source§

impl Mul for Saturating<i64>

Source§

type Output = Saturating<i64>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<i64>) -> Saturating<i64>

Performs the * operation. Read more
Source§

impl Mul for Saturating<i8>

Source§

type Output = Saturating<i8>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<i8>) -> Saturating<i8>

Performs the * operation. Read more
Source§

impl Mul for Saturating<isize>

Source§

type Output = Saturating<isize>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<isize>) -> Saturating<isize>

Performs the * operation. Read more
Source§

impl Mul for Saturating<u128>

Source§

type Output = Saturating<u128>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<u128>) -> Saturating<u128>

Performs the * operation. Read more
Source§

impl Mul for Saturating<u16>

Source§

type Output = Saturating<u16>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<u16>) -> Saturating<u16>

Performs the * operation. Read more
Source§

impl Mul for Saturating<u32>

Source§

type Output = Saturating<u32>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<u32>) -> Saturating<u32>

Performs the * operation. Read more
Source§

impl Mul for Saturating<u64>

Source§

type Output = Saturating<u64>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<u64>) -> Saturating<u64>

Performs the * operation. Read more
Source§

impl Mul for Saturating<u8>

Source§

type Output = Saturating<u8>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<u8>) -> Saturating<u8>

Performs the * operation. Read more
Source§

impl Mul for Saturating<usize>

Source§

type Output = Saturating<usize>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Saturating<usize>) -> Saturating<usize>

Performs the * operation. Read more
Source§

impl MulAssign<&Saturating<i128>> for Saturating<i128>

Source§

fn mul_assign(&mut self, other: &Saturating<i128>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<i16>> for Saturating<i16>

Source§

fn mul_assign(&mut self, other: &Saturating<i16>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<i32>> for Saturating<i32>

Source§

fn mul_assign(&mut self, other: &Saturating<i32>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<i64>> for Saturating<i64>

Source§

fn mul_assign(&mut self, other: &Saturating<i64>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<i8>> for Saturating<i8>

Source§

fn mul_assign(&mut self, other: &Saturating<i8>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<isize>> for Saturating<isize>

Source§

fn mul_assign(&mut self, other: &Saturating<isize>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<u128>> for Saturating<u128>

Source§

fn mul_assign(&mut self, other: &Saturating<u128>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<u16>> for Saturating<u16>

Source§

fn mul_assign(&mut self, other: &Saturating<u16>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<u32>> for Saturating<u32>

Source§

fn mul_assign(&mut self, other: &Saturating<u32>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<u64>> for Saturating<u64>

Source§

fn mul_assign(&mut self, other: &Saturating<u64>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<u8>> for Saturating<u8>

Source§

fn mul_assign(&mut self, other: &Saturating<u8>)

Performs the *= operation. Read more
Source§

impl MulAssign<&Saturating<usize>> for Saturating<usize>

Source§

fn mul_assign(&mut self, other: &Saturating<usize>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<i128>

Source§

fn mul_assign(&mut self, other: Saturating<i128>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<i16>

Source§

fn mul_assign(&mut self, other: Saturating<i16>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<i32>

Source§

fn mul_assign(&mut self, other: Saturating<i32>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<i64>

Source§

fn mul_assign(&mut self, other: Saturating<i64>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<i8>

Source§

fn mul_assign(&mut self, other: Saturating<i8>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<isize>

Source§

fn mul_assign(&mut self, other: Saturating<isize>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<u128>

Source§

fn mul_assign(&mut self, other: Saturating<u128>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<u16>

Source§

fn mul_assign(&mut self, other: Saturating<u16>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<u32>

Source§

fn mul_assign(&mut self, other: Saturating<u32>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<u64>

Source§

fn mul_assign(&mut self, other: Saturating<u64>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<u8>

Source§

fn mul_assign(&mut self, other: Saturating<u8>)

Performs the *= operation. Read more
Source§

impl MulAssign for Saturating<usize>

Source§

fn mul_assign(&mut self, other: Saturating<usize>)

Performs the *= operation. Read more
Source§

impl Neg for &Saturating<i128>

Source§

type Output = <Saturating<i128> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<i128> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<i16>

Source§

type Output = <Saturating<i16> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<i16> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<i32>

Source§

type Output = <Saturating<i32> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<i32> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<i64>

Source§

type Output = <Saturating<i64> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<i64> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<i8>

Source§

type Output = <Saturating<i8> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<i8> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<isize>

Source§

type Output = <Saturating<isize> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<isize> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<u128>

Source§

type Output = <Saturating<u128> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<u128> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<u16>

Source§

type Output = <Saturating<u16> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<u16> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<u32>

Source§

type Output = <Saturating<u32> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<u32> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<u64>

Source§

type Output = <Saturating<u64> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<u64> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<u8>

Source§

type Output = <Saturating<u8> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<u8> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Saturating<usize>

Source§

type Output = <Saturating<usize> as Neg>::Output

The resulting type after applying the - operator.
Source§

fn neg(self) -> <Saturating<usize> as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<i128>

Source§

type Output = Saturating<i128>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<i16>

Source§

type Output = Saturating<i16>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<i32>

Source§

type Output = Saturating<i32>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<i64>

Source§

type Output = Saturating<i64>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<i8>

Source§

type Output = Saturating<i8>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<isize>

Source§

type Output = Saturating<isize>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<u128>

Source§

type Output = Saturating<u128>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<u16>

Source§

type Output = Saturating<u16>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<u32>

Source§

type Output = Saturating<u32>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<u64>

Source§

type Output = Saturating<u64>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<u8>

Source§

type Output = Saturating<u8>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl Neg for Saturating<usize>

Source§

type Output = Saturating<usize>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<T: Octal> Octal for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Ord> Ord for Saturating<T>

Source§

fn cmp(&self, other: &Saturating<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T: PartialEq> PartialEq for Saturating<T>

Source§

fn eq(&self, other: &Saturating<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: PartialOrd> PartialOrd for Saturating<T>

Source§

fn partial_cmp(&self, other: &Saturating<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Sub<&Saturating<i128>> for &Saturating<i128>

Source§

type Output = <Saturating<i128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Sub<Saturating<i128>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i128>> for Saturating<i128>

Source§

type Output = <Saturating<i128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i128>, ) -> <Saturating<i128> as Sub<Saturating<i128>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i16>> for &Saturating<i16>

Source§

type Output = <Saturating<i16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Sub<Saturating<i16>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i16>> for Saturating<i16>

Source§

type Output = <Saturating<i16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i16>, ) -> <Saturating<i16> as Sub<Saturating<i16>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i32>> for &Saturating<i32>

Source§

type Output = <Saturating<i32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Sub<Saturating<i32>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i32>> for Saturating<i32>

Source§

type Output = <Saturating<i32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i32>, ) -> <Saturating<i32> as Sub<Saturating<i32>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i64>> for &Saturating<i64>

Source§

type Output = <Saturating<i64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Sub<Saturating<i64>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i64>> for Saturating<i64>

Source§

type Output = <Saturating<i64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i64>, ) -> <Saturating<i64> as Sub<Saturating<i64>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i8>> for &Saturating<i8>

Source§

type Output = <Saturating<i8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Sub<Saturating<i8>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<i8>> for Saturating<i8>

Source§

type Output = <Saturating<i8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<i8>, ) -> <Saturating<i8> as Sub<Saturating<i8>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<isize>> for &Saturating<isize>

Source§

type Output = <Saturating<isize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Sub<Saturating<isize>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<isize>> for Saturating<isize>

Source§

type Output = <Saturating<isize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<isize>, ) -> <Saturating<isize> as Sub<Saturating<isize>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u128>> for &Saturating<u128>

Source§

type Output = <Saturating<u128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Sub<Saturating<u128>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u128>> for Saturating<u128>

Source§

type Output = <Saturating<u128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u128>, ) -> <Saturating<u128> as Sub<Saturating<u128>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u16>> for &Saturating<u16>

Source§

type Output = <Saturating<u16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Sub<Saturating<u16>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u16>> for Saturating<u16>

Source§

type Output = <Saturating<u16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u16>, ) -> <Saturating<u16> as Sub<Saturating<u16>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u32>> for &Saturating<u32>

Source§

type Output = <Saturating<u32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Sub<Saturating<u32>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u32>> for Saturating<u32>

Source§

type Output = <Saturating<u32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u32>, ) -> <Saturating<u32> as Sub<Saturating<u32>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u64>> for &Saturating<u64>

Source§

type Output = <Saturating<u64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Sub<Saturating<u64>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u64>> for Saturating<u64>

Source§

type Output = <Saturating<u64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u64>, ) -> <Saturating<u64> as Sub<Saturating<u64>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u8>> for &Saturating<u8>

Source§

type Output = <Saturating<u8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Sub<Saturating<u8>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<u8>> for Saturating<u8>

Source§

type Output = <Saturating<u8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<u8>, ) -> <Saturating<u8> as Sub<Saturating<u8>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<usize>> for &Saturating<usize>

Source§

type Output = <Saturating<usize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Sub<Saturating<usize>>>::Output

Performs the - operation. Read more
Source§

impl Sub<&Saturating<usize>> for Saturating<usize>

Source§

type Output = <Saturating<usize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: &Saturating<usize>, ) -> <Saturating<usize> as Sub<Saturating<usize>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<i128>> for &'a Saturating<i128>

Source§

type Output = <Saturating<i128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<i128>, ) -> <Saturating<i128> as Sub<Saturating<i128>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<i16>> for &'a Saturating<i16>

Source§

type Output = <Saturating<i16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<i16>, ) -> <Saturating<i16> as Sub<Saturating<i16>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<i32>> for &'a Saturating<i32>

Source§

type Output = <Saturating<i32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<i32>, ) -> <Saturating<i32> as Sub<Saturating<i32>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<i64>> for &'a Saturating<i64>

Source§

type Output = <Saturating<i64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<i64>, ) -> <Saturating<i64> as Sub<Saturating<i64>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<i8>> for &'a Saturating<i8>

Source§

type Output = <Saturating<i8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<i8>, ) -> <Saturating<i8> as Sub<Saturating<i8>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<isize>> for &'a Saturating<isize>

Source§

type Output = <Saturating<isize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<isize>, ) -> <Saturating<isize> as Sub<Saturating<isize>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<u128>> for &'a Saturating<u128>

Source§

type Output = <Saturating<u128> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<u128>, ) -> <Saturating<u128> as Sub<Saturating<u128>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<u16>> for &'a Saturating<u16>

Source§

type Output = <Saturating<u16> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<u16>, ) -> <Saturating<u16> as Sub<Saturating<u16>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<u32>> for &'a Saturating<u32>

Source§

type Output = <Saturating<u32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<u32>, ) -> <Saturating<u32> as Sub<Saturating<u32>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<u64>> for &'a Saturating<u64>

Source§

type Output = <Saturating<u64> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<u64>, ) -> <Saturating<u64> as Sub<Saturating<u64>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<u8>> for &'a Saturating<u8>

Source§

type Output = <Saturating<u8> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<u8>, ) -> <Saturating<u8> as Sub<Saturating<u8>>>::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<Saturating<usize>> for &'a Saturating<usize>

Source§

type Output = <Saturating<usize> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub( self, other: Saturating<usize>, ) -> <Saturating<usize> as Sub<Saturating<usize>>>::Output

Performs the - operation. Read more
Source§

impl Sub for Saturating<i128>

Source§

type Output = Saturating<i128>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<i128>) -> Saturating<i128>

Performs the - operation. Read more
Source§

impl Sub for Saturating<i16>

Source§

type Output = Saturating<i16>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<i16>) -> Saturating<i16>

Performs the - operation. Read more
Source§

impl Sub for Saturating<i32>

Source§

type Output = Saturating<i32>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<i32>) -> Saturating<i32>

Performs the - operation. Read more
Source§

impl Sub for Saturating<i64>

Source§

type Output = Saturating<i64>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<i64>) -> Saturating<i64>

Performs the - operation. Read more
Source§

impl Sub for Saturating<i8>

Source§

type Output = Saturating<i8>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<i8>) -> Saturating<i8>

Performs the - operation. Read more
Source§

impl Sub for Saturating<isize>

Source§

type Output = Saturating<isize>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<isize>) -> Saturating<isize>

Performs the - operation. Read more
Source§

impl Sub for Saturating<u128>

Source§

type Output = Saturating<u128>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<u128>) -> Saturating<u128>

Performs the - operation. Read more
Source§

impl Sub for Saturating<u16>

Source§

type Output = Saturating<u16>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<u16>) -> Saturating<u16>

Performs the - operation. Read more
Source§

impl Sub for Saturating<u32>

Source§

type Output = Saturating<u32>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<u32>) -> Saturating<u32>

Performs the - operation. Read more
Source§

impl Sub for Saturating<u64>

Source§

type Output = Saturating<u64>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<u64>) -> Saturating<u64>

Performs the - operation. Read more
Source§

impl Sub for Saturating<u8>

Source§

type Output = Saturating<u8>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<u8>) -> Saturating<u8>

Performs the - operation. Read more
Source§

impl Sub for Saturating<usize>

Source§

type Output = Saturating<usize>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Saturating<usize>) -> Saturating<usize>

Performs the - operation. Read more
Source§

impl SubAssign<&Saturating<i128>> for Saturating<i128>

Source§

fn sub_assign(&mut self, other: &Saturating<i128>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<i16>> for Saturating<i16>

Source§

fn sub_assign(&mut self, other: &Saturating<i16>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<i32>> for Saturating<i32>

Source§

fn sub_assign(&mut self, other: &Saturating<i32>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<i64>> for Saturating<i64>

Source§

fn sub_assign(&mut self, other: &Saturating<i64>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<i8>> for Saturating<i8>

Source§

fn sub_assign(&mut self, other: &Saturating<i8>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<isize>> for Saturating<isize>

Source§

fn sub_assign(&mut self, other: &Saturating<isize>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<u128>> for Saturating<u128>

Source§

fn sub_assign(&mut self, other: &Saturating<u128>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<u16>> for Saturating<u16>

Source§

fn sub_assign(&mut self, other: &Saturating<u16>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<u32>> for Saturating<u32>

Source§

fn sub_assign(&mut self, other: &Saturating<u32>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<u64>> for Saturating<u64>

Source§

fn sub_assign(&mut self, other: &Saturating<u64>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<u8>> for Saturating<u8>

Source§

fn sub_assign(&mut self, other: &Saturating<u8>)

Performs the -= operation. Read more
Source§

impl SubAssign<&Saturating<usize>> for Saturating<usize>

Source§

fn sub_assign(&mut self, other: &Saturating<usize>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<i128>

Source§

fn sub_assign(&mut self, other: Saturating<i128>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<i16>

Source§

fn sub_assign(&mut self, other: Saturating<i16>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<i32>

Source§

fn sub_assign(&mut self, other: Saturating<i32>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<i64>

Source§

fn sub_assign(&mut self, other: Saturating<i64>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<i8>

Source§

fn sub_assign(&mut self, other: Saturating<i8>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<isize>

Source§

fn sub_assign(&mut self, other: Saturating<isize>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<u128>

Source§

fn sub_assign(&mut self, other: Saturating<u128>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<u16>

Source§

fn sub_assign(&mut self, other: Saturating<u16>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<u32>

Source§

fn sub_assign(&mut self, other: Saturating<u32>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<u64>

Source§

fn sub_assign(&mut self, other: Saturating<u64>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<u8>

Source§

fn sub_assign(&mut self, other: Saturating<u8>)

Performs the -= operation. Read more
Source§

impl SubAssign for Saturating<usize>

Source§

fn sub_assign(&mut self, other: Saturating<usize>)

Performs the -= operation. Read more
Source§

impl<T: UpperHex> UpperHex for Saturating<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Copy> Copy for Saturating<T>

Source§

impl<T: Eq> Eq for Saturating<T>

Source§

impl<T> StructuralPartialEq for Saturating<T>

Auto Trait Implementations§

§

impl<T> Freeze for Saturating<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Saturating<T>
where T: RefUnwindSafe,

§

impl<T> Send for Saturating<T>
where T: Send,

§

impl<T> Sync for Saturating<T>
where T: Sync,

§

impl<T> Unpin for Saturating<T>
where T: Unpin,

§

impl<T> UnwindSafe for Saturating<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.