Struct Wrapping

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

Wrapper type of arithmetic wrapping_* operations.

Tuple Fields§

§0: T

Trait Implementations§

Source§

impl Add<i128> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i128) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i16> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i64> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i8> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<isize> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: isize) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u128> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u128) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u16> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u64> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u8> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<usize> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: usize) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T> AddAssign<T> for Wrapping<T>
where Wrapping<T>: Add<T, Output = Wrapping<T>> + Copy,

Source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
Source§

impl<T> AddAssign for Wrapping<T>
where Wrapping<T>: Add<Output = Wrapping<T>> + Copy,

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl BinaryRepr for Wrapping<i128>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<i16>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<i32>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<i64>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<i8>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<isize>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<u128>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<u16>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<u32>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<u64>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<u8>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl BinaryRepr for Wrapping<usize>

Source§

fn count_ones(self) -> u32

Source§

fn count_zeros(self) -> u32

Source§

fn leading_ones(self) -> u32

Source§

fn leading_zeros(self) -> u32

Source§

fn reverse_bits(self) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

fn rotate_right(self, n: u32) -> Self

Source§

fn swap_bytes(self) -> Self

Source§

fn trailing_ones(self) -> u32

Source§

fn trailing_zeros(self) -> u32

Source§

impl<T> BitAnd<T> for Wrapping<T>
where T: BitAnd<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
Source§

impl<T> BitAnd for Wrapping<T>
where T: BitAnd<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl<T> BitAndAssign<T> for Wrapping<T>
where T: BitAndAssign,

Source§

fn bitand_assign(&mut self, rhs: T)

Performs the &= operation. Read more
Source§

impl<T> BitAndAssign for Wrapping<T>
where T: BitAndAssign,

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl<T> BitOr<T> for Wrapping<T>
where T: BitOr<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
Source§

impl<T> BitOr for Wrapping<T>
where T: BitOr<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl<T> BitOrAssign<T> for Wrapping<T>
where T: BitOrAssign,

Source§

fn bitor_assign(&mut self, rhs: T)

Performs the |= operation. Read more
Source§

impl<T> BitOrAssign for Wrapping<T>
where T: BitOrAssign,

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl<T> BitXor<T> for Wrapping<T>
where T: BitXor<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T> BitXor for Wrapping<T>
where T: BitXor<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T> BitXorAssign<T> for Wrapping<T>
where T: BitXorAssign,

Source§

fn bitxor_assign(&mut self, rhs: T)

Performs the ^= operation. Read more
Source§

impl<T> BitXorAssign for Wrapping<T>
where T: BitXorAssign,

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl<T> Bounded for Wrapping<T>
where T: Bounded,

Source§

fn maximum() -> Self

Source§

fn minimum() -> Self

Source§

fn is_maximum(&self) -> bool

Source§

fn is_minimum(&self) -> bool

Source§

fn set_maximum(&mut self)

Source§

fn set_minimum(&mut self)

Source§

impl<T: Clone> Clone for Wrapping<T>

Source§

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

Returns a duplicate 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 for Wrapping<T>
where T: Debug,

Source§

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

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

impl<T: Default> Default for Wrapping<T>

Source§

fn default() -> Wrapping<T>

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

impl<T> Display for Wrapping<T>
where T: Display,

Source§

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

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

impl Div<i128> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i128) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i16> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i64> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i8> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<isize> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: isize) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u128> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u128) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u16> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u64> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u8> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<usize> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: usize) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> DivAssign<T> for Wrapping<T>
where Wrapping<T>: Div<T, Output = Wrapping<T>> + Copy,

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<T> DivAssign for Wrapping<T>
where Wrapping<T>: Div<Output = Wrapping<T>> + Copy,

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl From<i128> for Wrapping<i128>

Source§

fn from(t: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Wrapping<i16>

Source§

fn from(t: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Wrapping<i32>

Source§

fn from(t: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Wrapping<i64>

Source§

fn from(t: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Wrapping<i8>

Source§

fn from(t: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for Wrapping<isize>

Source§

fn from(t: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for Wrapping<u128>

Source§

fn from(t: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Wrapping<u16>

Source§

fn from(t: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Wrapping<u32>

Source§

fn from(t: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Wrapping<u64>

Source§

fn from(t: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Wrapping<u8>

Source§

fn from(t: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Wrapping<usize>

Source§

fn from(t: usize) -> Self

Converts to this type from the input type.
Source§

impl<T> FromStr for Wrapping<T>
where T: FromStr,

Source§

type Err = <T as FromStr>::Err

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl<T: Hash> Hash for Wrapping<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 IntBase for Wrapping<i128>

Source§

type Error = <i128 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<i16>

Source§

type Error = <i16 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<i32>

Source§

type Error = <i32 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<i64>

Source§

type Error = <i64 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<i8>

Source§

type Error = <i8 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<isize>

Source§

type Error = <isize as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<u128>

Source§

type Error = <u128 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<u16>

Source§

type Error = <u16 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<u32>

Source§

type Error = <u32 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<u64>

Source§

type Error = <u64 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<u8>

Source§

type Error = <u8 as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl IntBase for Wrapping<usize>

Source§

type Error = <usize as IntBase>::Error

Source§

fn div_euclid(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn pow(self, exp: u32) -> Self

Source§

fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>

Source§

fn ilog(self, base: Self) -> u32

Source§

fn ilog2(self) -> u32

Source§

fn ilog10(self) -> u32

Source§

impl<T> IterScan for Wrapping<T>
where T: IterScan<Output = T>,

Source§

type Output = Wrapping<T>

Source§

fn scan<'a, I: Iterator<Item = &'a str>>(iter: &mut I) -> Option<Self::Output>

Source§

impl Mul<i128> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i128) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i16> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i64> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i8> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<isize> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: isize) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u128> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u128) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u16> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u64> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u8> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<usize> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: usize) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> MulAssign<T> for Wrapping<T>
where Wrapping<T>: Mul<T, Output = Wrapping<T>> + Copy,

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<T> MulAssign for Wrapping<T>
where Wrapping<T>: Mul<Output = Wrapping<T>> + Copy,

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Not for Wrapping<T>
where T: Not<Output = T>,

Source§

type Output = Wrapping<T>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T> One for Wrapping<T>
where T: One,

Source§

fn one() -> Self

Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Source§

fn set_one(&mut self)

Source§

impl<T: Ord> Ord for Wrapping<T>

Source§

fn cmp(&self, other: &Wrapping<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 Wrapping<T>

Source§

fn eq(&self, other: &Wrapping<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 Wrapping<T>

Source§

fn partial_cmp(&self, other: &Wrapping<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 Product for Wrapping<i128>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<i16>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<i32>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<i64>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<i8>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<isize>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<u128>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<u16>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<u32>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<u64>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<u8>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product for Wrapping<usize>

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Rem<i128> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i128) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i16> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i64> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i8> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<isize> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: isize) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u128> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u128) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u16> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u16) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u64> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u64) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u8> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<usize> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: usize) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl<T> RemAssign<T> for Wrapping<T>
where Wrapping<T>: Rem<T, Output = Wrapping<T>> + Copy,

Source§

fn rem_assign(&mut self, rhs: T)

Performs the %= operation. Read more
Source§

impl<T> RemAssign for Wrapping<T>
where Wrapping<T>: Rem<Output = Wrapping<T>> + Copy,

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl Shl<u32> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<i128>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<i16>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<i32>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<i64>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<i8>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<isize>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<u128>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<u16>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<u32>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<u64>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<u8>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Wrapping<usize>

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl Shr<u32> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<i128>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<i16>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<i32>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<i64>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<i8>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<isize>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<u128>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<u16>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<u32>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<u64>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<u8>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Wrapping<usize>

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl Signed for Wrapping<i128>

Source§

type Unsigned = Wrapping<u128>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Signed for Wrapping<i16>

Source§

type Unsigned = Wrapping<u16>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Signed for Wrapping<i32>

Source§

type Unsigned = Wrapping<u32>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Signed for Wrapping<i64>

Source§

type Unsigned = Wrapping<u64>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Signed for Wrapping<i8>

Source§

type Unsigned = Wrapping<u8>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Signed for Wrapping<isize>

Source§

type Unsigned = Wrapping<usize>

Source§

fn unsigned(self) -> Self::Unsigned

Source§

fn abs(self) -> Self

Source§

fn abs_diff(self, other: Self) -> Self::Unsigned

Source§

fn is_negative(self) -> bool

Source§

fn is_positive(self) -> bool

Source§

fn signum(self) -> Self

Source§

impl Sub<i128> for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i128) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i16> for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i32> for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i64> for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i8> for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<isize> for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: isize) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u128> for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u128) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u16> for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u32> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u64> for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u8> for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<usize> for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: usize) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<i128>

Source§

type Output = Wrapping<i128>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<i16>

Source§

type Output = Wrapping<i16>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<i32>

Source§

type Output = Wrapping<i32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<i64>

Source§

type Output = Wrapping<i64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<i8>

Source§

type Output = Wrapping<i8>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<isize>

Source§

type Output = Wrapping<isize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<u128>

Source§

type Output = Wrapping<u128>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<u16>

Source§

type Output = Wrapping<u16>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<u64>

Source§

type Output = Wrapping<u64>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<u8>

Source§

type Output = Wrapping<u8>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Wrapping<usize>

Source§

type Output = Wrapping<usize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T> SubAssign<T> for Wrapping<T>
where Wrapping<T>: Sub<T, Output = Wrapping<T>> + Copy,

Source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
Source§

impl<T> SubAssign for Wrapping<T>
where Wrapping<T>: Sub<Output = Wrapping<T>> + Copy,

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Sum for Wrapping<i128>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<i16>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<i32>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<i64>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<i8>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<isize>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<u128>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<u16>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<u32>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<u64>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<u8>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum for Wrapping<usize>

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Unsigned for Wrapping<u128>

Source§

type Signed = Wrapping<i128>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl Unsigned for Wrapping<u16>

Source§

type Signed = Wrapping<i16>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl Unsigned for Wrapping<u32>

Source§

type Signed = Wrapping<i32>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl Unsigned for Wrapping<u64>

Source§

type Signed = Wrapping<i64>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl Unsigned for Wrapping<u8>

Source§

type Signed = Wrapping<i8>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl Unsigned for Wrapping<usize>

Source§

type Signed = Wrapping<isize>

Source§

fn signed(self) -> Self::Signed

Source§

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

Source§

fn next_power_of_two(self) -> Self

Source§

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

Source§

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

Source§

fn extgcd(self, other: Self) -> ExtendedGcd<Self>

Source§

fn modinv(self, modulo: Self) -> Self

Source§

impl<T> Zero for Wrapping<T>
where T: Zero,

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool
where Self: PartialEq,

Source§

fn set_zero(&mut self)

Source§

impl<T: Copy> Copy for Wrapping<T>

Source§

impl<T: Eq> Eq for Wrapping<T>

Source§

impl<T> StructuralPartialEq for Wrapping<T>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<T> UnwindSafe for Wrapping<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> AsTotalOrd for T
where T: PartialOrd,

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PartialOrdExt for T
where T: PartialOrd,

Source§

fn chmin(&mut self, other: T)

Source§

fn chmax(&mut self, other: T)

Source§

fn minmax(self, other: T) -> (T, T)

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.