#[repr(transparent)]pub struct Saturating<T>(pub T);
Expand description
Wrapper type of arithmetic saturating_*
operations.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl Add for Saturating<i128>
impl Add for Saturating<i128>
Source§impl Add for Saturating<i16>
impl Add for Saturating<i16>
Source§impl Add for Saturating<i32>
impl Add for Saturating<i32>
Source§impl Add for Saturating<i64>
impl Add for Saturating<i64>
Source§impl Add for Saturating<i8>
impl Add for Saturating<i8>
Source§impl Add for Saturating<isize>
impl Add for Saturating<isize>
Source§impl Add for Saturating<u128>
impl Add for Saturating<u128>
Source§impl Add for Saturating<u16>
impl Add for Saturating<u16>
Source§impl Add for Saturating<u32>
impl Add for Saturating<u32>
Source§impl Add for Saturating<u64>
impl Add for Saturating<u64>
Source§impl Add for Saturating<u8>
impl Add for Saturating<u8>
Source§impl Add for Saturating<usize>
impl Add for Saturating<usize>
Source§impl<T> AddAssign<T> for Saturating<T>
impl<T> AddAssign<T> for Saturating<T>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign for Saturating<T>
impl<T> AddAssign for Saturating<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl BinaryRepr for Saturating<i128>
impl BinaryRepr for Saturating<i128>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<i16>
impl BinaryRepr for Saturating<i16>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<i32>
impl BinaryRepr for Saturating<i32>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<i64>
impl BinaryRepr for Saturating<i64>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<i8>
impl BinaryRepr for Saturating<i8>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<isize>
impl BinaryRepr for Saturating<isize>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<u128>
impl BinaryRepr for Saturating<u128>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<u16>
impl BinaryRepr for Saturating<u16>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<u32>
impl BinaryRepr for Saturating<u32>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<u64>
impl BinaryRepr for Saturating<u64>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<u8>
impl BinaryRepr for Saturating<u8>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl BinaryRepr for Saturating<usize>
impl BinaryRepr for Saturating<usize>
fn count_ones(self) -> u32
fn count_zeros(self) -> u32
fn leading_ones(self) -> u32
fn leading_zeros(self) -> u32
fn reverse_bits(self) -> Self
fn rotate_left(self, n: u32) -> Self
fn rotate_right(self, n: u32) -> Self
fn swap_bytes(self) -> Self
fn trailing_ones(self) -> u32
fn trailing_zeros(self) -> u32
Source§impl<T> BitAnd<T> for Saturating<T>where
T: BitAnd<Output = T>,
impl<T> BitAnd<T> for Saturating<T>where
T: BitAnd<Output = T>,
Source§impl<T> BitAnd for Saturating<T>where
T: BitAnd<Output = T>,
impl<T> BitAnd for Saturating<T>where
T: BitAnd<Output = T>,
Source§impl<T> BitAndAssign<T> for Saturating<T>where
T: BitAndAssign,
impl<T> BitAndAssign<T> for Saturating<T>where
T: BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: T)
fn bitand_assign(&mut self, rhs: T)
Performs the
&=
operation. Read moreSource§impl<T> BitAndAssign for Saturating<T>where
T: BitAndAssign,
impl<T> BitAndAssign for Saturating<T>where
T: BitAndAssign,
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl<T> BitOr<T> for Saturating<T>where
T: BitOr<Output = T>,
impl<T> BitOr<T> for Saturating<T>where
T: BitOr<Output = T>,
Source§impl<T> BitOr for Saturating<T>where
T: BitOr<Output = T>,
impl<T> BitOr for Saturating<T>where
T: BitOr<Output = T>,
Source§impl<T> BitOrAssign<T> for Saturating<T>where
T: BitOrAssign,
impl<T> BitOrAssign<T> for Saturating<T>where
T: BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: T)
fn bitor_assign(&mut self, rhs: T)
Performs the
|=
operation. Read moreSource§impl<T> BitOrAssign for Saturating<T>where
T: BitOrAssign,
impl<T> BitOrAssign for Saturating<T>where
T: BitOrAssign,
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl<T> BitXor<T> for Saturating<T>where
T: BitXor<Output = T>,
impl<T> BitXor<T> for Saturating<T>where
T: BitXor<Output = T>,
Source§impl<T> BitXor for Saturating<T>where
T: BitXor<Output = T>,
impl<T> BitXor for Saturating<T>where
T: BitXor<Output = T>,
Source§impl<T> BitXorAssign<T> for Saturating<T>where
T: BitXorAssign,
impl<T> BitXorAssign<T> for Saturating<T>where
T: BitXorAssign,
Source§fn bitxor_assign(&mut self, rhs: T)
fn bitxor_assign(&mut self, rhs: T)
Performs the
^=
operation. Read moreSource§impl<T> BitXorAssign for Saturating<T>where
T: BitXorAssign,
impl<T> BitXorAssign for Saturating<T>where
T: BitXorAssign,
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl<T> Bounded for Saturating<T>where
T: Bounded,
impl<T> Bounded for Saturating<T>where
T: Bounded,
fn maximum() -> Self
fn minimum() -> Self
fn is_maximum(&self) -> bool
fn is_minimum(&self) -> bool
fn set_maximum(&mut self)
fn set_minimum(&mut self)
Source§impl<T: Clone> Clone for Saturating<T>
impl<T: Clone> Clone for Saturating<T>
Source§fn clone(&self) -> Saturating<T>
fn clone(&self) -> Saturating<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for Saturating<T>where
T: Debug,
impl<T> Debug for Saturating<T>where
T: Debug,
Source§impl<T: Default> Default for Saturating<T>
impl<T: Default> Default for Saturating<T>
Source§fn default() -> Saturating<T>
fn default() -> Saturating<T>
Returns the “default value” for a type. Read more
Source§impl<T> Display for Saturating<T>where
T: Display,
impl<T> Display for Saturating<T>where
T: Display,
Source§impl<T> Div<T> for Saturating<T>where
T: Div<Output = T>,
impl<T> Div<T> for Saturating<T>where
T: Div<Output = T>,
Source§impl<T> Div for Saturating<T>where
T: Div<Output = T>,
impl<T> Div for Saturating<T>where
T: Div<Output = T>,
Source§impl<T> DivAssign<T> for Saturating<T>where
T: DivAssign,
impl<T> DivAssign<T> for Saturating<T>where
T: DivAssign,
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign for Saturating<T>where
T: DivAssign,
impl<T> DivAssign for Saturating<T>where
T: DivAssign,
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl<T> FromStr for Saturating<T>where
T: FromStr,
impl<T> FromStr for Saturating<T>where
T: FromStr,
Source§impl<T: Hash> Hash for Saturating<T>
impl<T: Hash> Hash for Saturating<T>
Source§impl IntBase for Saturating<i128>
impl IntBase for Saturating<i128>
type Error = <i128 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<i16>
impl IntBase for Saturating<i16>
type Error = <i16 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<i32>
impl IntBase for Saturating<i32>
type Error = <i32 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<i64>
impl IntBase for Saturating<i64>
type Error = <i64 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<i8>
impl IntBase for Saturating<i8>
type Error = <i8 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<isize>
impl IntBase for Saturating<isize>
type Error = <isize as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<u128>
impl IntBase for Saturating<u128>
type Error = <u128 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<u16>
impl IntBase for Saturating<u16>
type Error = <u16 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<u32>
impl IntBase for Saturating<u32>
type Error = <u32 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<u64>
impl IntBase for Saturating<u64>
type Error = <u64 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<u8>
impl IntBase for Saturating<u8>
type Error = <u8 as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl IntBase for Saturating<usize>
impl IntBase for Saturating<usize>
type Error = <usize as IntBase>::Error
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Source§impl<T> IterScan for Saturating<T>where
T: IterScan<Output = T>,
impl<T> IterScan for Saturating<T>where
T: IterScan<Output = T>,
Source§impl Mul for Saturating<i128>
impl Mul for Saturating<i128>
Source§impl Mul for Saturating<i16>
impl Mul for Saturating<i16>
Source§impl Mul for Saturating<i32>
impl Mul for Saturating<i32>
Source§impl Mul for Saturating<i64>
impl Mul for Saturating<i64>
Source§impl Mul for Saturating<i8>
impl Mul for Saturating<i8>
Source§impl Mul for Saturating<isize>
impl Mul for Saturating<isize>
Source§impl Mul for Saturating<u128>
impl Mul for Saturating<u128>
Source§impl Mul for Saturating<u16>
impl Mul for Saturating<u16>
Source§impl Mul for Saturating<u32>
impl Mul for Saturating<u32>
Source§impl Mul for Saturating<u64>
impl Mul for Saturating<u64>
Source§impl Mul for Saturating<u8>
impl Mul for Saturating<u8>
Source§impl Mul for Saturating<usize>
impl Mul for Saturating<usize>
Source§impl<T> MulAssign<T> for Saturating<T>
impl<T> MulAssign<T> for Saturating<T>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign for Saturating<T>
impl<T> MulAssign for Saturating<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Neg for Saturating<i128>
impl Neg for Saturating<i128>
Source§impl Neg for Saturating<i16>
impl Neg for Saturating<i16>
Source§impl Neg for Saturating<i32>
impl Neg for Saturating<i32>
Source§impl Neg for Saturating<i64>
impl Neg for Saturating<i64>
Source§impl Neg for Saturating<i8>
impl Neg for Saturating<i8>
Source§impl Neg for Saturating<isize>
impl Neg for Saturating<isize>
Source§impl<T> Not for Saturating<T>where
T: Not<Output = T>,
impl<T> Not for Saturating<T>where
T: Not<Output = T>,
Source§impl<T> One for Saturating<T>where
T: One,
impl<T> One for Saturating<T>where
T: One,
Source§impl<T: Ord> Ord for Saturating<T>
impl<T: Ord> Ord for Saturating<T>
Source§fn cmp(&self, other: &Saturating<T>) -> Ordering
fn cmp(&self, other: &Saturating<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for Saturating<T>
impl<T: PartialEq> PartialEq for Saturating<T>
Source§impl<T: PartialOrd> PartialOrd for Saturating<T>
impl<T: PartialOrd> PartialOrd for Saturating<T>
Source§impl Product for Saturating<i128>
impl Product for Saturating<i128>
Source§impl Product for Saturating<i16>
impl Product for Saturating<i16>
Source§impl Product for Saturating<i32>
impl Product for Saturating<i32>
Source§impl Product for Saturating<i64>
impl Product for Saturating<i64>
Source§impl Product for Saturating<i8>
impl Product for Saturating<i8>
Source§impl Product for Saturating<isize>
impl Product for Saturating<isize>
Source§impl Product for Saturating<u128>
impl Product for Saturating<u128>
Source§impl Product for Saturating<u16>
impl Product for Saturating<u16>
Source§impl Product for Saturating<u32>
impl Product for Saturating<u32>
Source§impl Product for Saturating<u64>
impl Product for Saturating<u64>
Source§impl Product for Saturating<u8>
impl Product for Saturating<u8>
Source§impl Product for Saturating<usize>
impl Product for Saturating<usize>
Source§impl<T> Rem<T> for Saturating<T>where
T: Rem<Output = T>,
impl<T> Rem<T> for Saturating<T>where
T: Rem<Output = T>,
Source§impl<T> Rem for Saturating<T>where
T: Rem<Output = T>,
impl<T> Rem for Saturating<T>where
T: Rem<Output = T>,
Source§impl<T> RemAssign<T> for Saturating<T>where
T: RemAssign,
impl<T> RemAssign<T> for Saturating<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, rhs: T)
fn rem_assign(&mut self, rhs: T)
Performs the
%=
operation. Read moreSource§impl<T> RemAssign for Saturating<T>where
T: RemAssign,
impl<T> RemAssign for Saturating<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<i128>
impl ShlAssign<u32> for Saturating<i128>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<i16>
impl ShlAssign<u32> for Saturating<i16>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<i32>
impl ShlAssign<u32> for Saturating<i32>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<i64>
impl ShlAssign<u32> for Saturating<i64>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<i8>
impl ShlAssign<u32> for Saturating<i8>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<isize>
impl ShlAssign<u32> for Saturating<isize>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<u128>
impl ShlAssign<u32> for Saturating<u128>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<u16>
impl ShlAssign<u32> for Saturating<u16>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<u32>
impl ShlAssign<u32> for Saturating<u32>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<u64>
impl ShlAssign<u32> for Saturating<u64>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<u8>
impl ShlAssign<u32> for Saturating<u8>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShlAssign<u32> for Saturating<usize>
impl ShlAssign<u32> for Saturating<usize>
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<i128>
impl ShrAssign<u32> for Saturating<i128>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<i16>
impl ShrAssign<u32> for Saturating<i16>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<i32>
impl ShrAssign<u32> for Saturating<i32>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<i64>
impl ShrAssign<u32> for Saturating<i64>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<i8>
impl ShrAssign<u32> for Saturating<i8>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<isize>
impl ShrAssign<u32> for Saturating<isize>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<u128>
impl ShrAssign<u32> for Saturating<u128>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<u16>
impl ShrAssign<u32> for Saturating<u16>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<u32>
impl ShrAssign<u32> for Saturating<u32>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<u64>
impl ShrAssign<u32> for Saturating<u64>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<u8>
impl ShrAssign<u32> for Saturating<u8>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl ShrAssign<u32> for Saturating<usize>
impl ShrAssign<u32> for Saturating<usize>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl Signed for Saturating<i128>
impl Signed for Saturating<i128>
Source§impl Signed for Saturating<i16>
impl Signed for Saturating<i16>
Source§impl Signed for Saturating<i32>
impl Signed for Saturating<i32>
Source§impl Signed for Saturating<i64>
impl Signed for Saturating<i64>
Source§impl Signed for Saturating<i8>
impl Signed for Saturating<i8>
Source§impl Signed for Saturating<isize>
impl Signed for Saturating<isize>
Source§impl Sub for Saturating<i128>
impl Sub for Saturating<i128>
Source§impl Sub for Saturating<i16>
impl Sub for Saturating<i16>
Source§impl Sub for Saturating<i32>
impl Sub for Saturating<i32>
Source§impl Sub for Saturating<i64>
impl Sub for Saturating<i64>
Source§impl Sub for Saturating<i8>
impl Sub for Saturating<i8>
Source§impl Sub for Saturating<isize>
impl Sub for Saturating<isize>
Source§impl Sub for Saturating<u128>
impl Sub for Saturating<u128>
Source§impl Sub for Saturating<u16>
impl Sub for Saturating<u16>
Source§impl Sub for Saturating<u32>
impl Sub for Saturating<u32>
Source§impl Sub for Saturating<u64>
impl Sub for Saturating<u64>
Source§impl Sub for Saturating<u8>
impl Sub for Saturating<u8>
Source§impl Sub for Saturating<usize>
impl Sub for Saturating<usize>
Source§impl<T> SubAssign<T> for Saturating<T>
impl<T> SubAssign<T> for Saturating<T>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreSource§impl<T> SubAssign for Saturating<T>
impl<T> SubAssign for Saturating<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreSource§impl Sum for Saturating<i128>
impl Sum for Saturating<i128>
Source§impl Sum for Saturating<i16>
impl Sum for Saturating<i16>
Source§impl Sum for Saturating<i32>
impl Sum for Saturating<i32>
Source§impl Sum for Saturating<i64>
impl Sum for Saturating<i64>
Source§impl Sum for Saturating<i8>
impl Sum for Saturating<i8>
Source§impl Sum for Saturating<isize>
impl Sum for Saturating<isize>
Source§impl Sum for Saturating<u128>
impl Sum for Saturating<u128>
Source§impl Sum for Saturating<u16>
impl Sum for Saturating<u16>
Source§impl Sum for Saturating<u32>
impl Sum for Saturating<u32>
Source§impl Sum for Saturating<u64>
impl Sum for Saturating<u64>
Source§impl Sum for Saturating<u8>
impl Sum for Saturating<u8>
Source§impl Sum for Saturating<usize>
impl Sum for Saturating<usize>
Source§impl Unsigned for Saturating<u128>
impl Unsigned for Saturating<u128>
type Signed = Saturating<i128>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl Unsigned for Saturating<u16>
impl Unsigned for Saturating<u16>
type Signed = Saturating<i16>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl Unsigned for Saturating<u32>
impl Unsigned for Saturating<u32>
type Signed = Saturating<i32>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl Unsigned for Saturating<u64>
impl Unsigned for Saturating<u64>
type Signed = Saturating<i64>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl Unsigned for Saturating<u8>
impl Unsigned for Saturating<u8>
type Signed = Saturating<i8>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl Unsigned for Saturating<usize>
impl Unsigned for Saturating<usize>
type Signed = Saturating<isize>
fn signed(self) -> Self::Signed
fn abs_diff(self, other: Self) -> Self
fn next_power_of_two(self) -> Self
fn gcd(self, other: Self) -> Self
fn lcm(self, other: Self) -> Self
fn extgcd(self, other: Self) -> ExtendedGcd<Self>
fn modinv(self, modulo: Self) -> Self
Source§impl<T> Zero for Saturating<T>where
T: Zero,
impl<T> Zero for Saturating<T>where
T: Zero,
impl<T: Copy> Copy for Saturating<T>
impl<T: Eq> Eq for Saturating<T>
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> AsTotalOrd for Twhere
T: PartialOrd,
impl<T> AsTotalOrd for Twhere
T: PartialOrd,
fn as_total_ord(&self) -> TotalOrd<&T>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more