#[repr(transparent)]pub struct Wrapping<T>(pub T);
Expand description
Wrapper type of arithmetic wrapping_*
operations.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> AddAssign<T> for Wrapping<T>
impl<T> AddAssign<T> for Wrapping<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 Wrapping<T>
impl<T> AddAssign for Wrapping<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl BinaryRepr for Wrapping<i128>
impl BinaryRepr for Wrapping<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 Wrapping<i16>
impl BinaryRepr for Wrapping<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 Wrapping<i32>
impl BinaryRepr for Wrapping<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 Wrapping<i64>
impl BinaryRepr for Wrapping<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 Wrapping<i8>
impl BinaryRepr for Wrapping<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 Wrapping<isize>
impl BinaryRepr for Wrapping<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 Wrapping<u128>
impl BinaryRepr for Wrapping<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 Wrapping<u16>
impl BinaryRepr for Wrapping<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 Wrapping<u32>
impl BinaryRepr for Wrapping<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 Wrapping<u64>
impl BinaryRepr for Wrapping<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 Wrapping<u8>
impl BinaryRepr for Wrapping<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 Wrapping<usize>
impl BinaryRepr for Wrapping<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> BitAndAssign<T> for Wrapping<T>where
T: BitAndAssign,
impl<T> BitAndAssign<T> for Wrapping<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 Wrapping<T>where
T: BitAndAssign,
impl<T> BitAndAssign for Wrapping<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> BitOrAssign<T> for Wrapping<T>where
T: BitOrAssign,
impl<T> BitOrAssign<T> for Wrapping<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 Wrapping<T>where
T: BitOrAssign,
impl<T> BitOrAssign for Wrapping<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> BitXorAssign<T> for Wrapping<T>where
T: BitXorAssign,
impl<T> BitXorAssign<T> for Wrapping<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 Wrapping<T>where
T: BitXorAssign,
impl<T> BitXorAssign for Wrapping<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 Wrapping<T>where
T: Bounded,
impl<T> Bounded for Wrapping<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> DivAssign<T> for Wrapping<T>
impl<T> DivAssign<T> for Wrapping<T>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T> DivAssign for Wrapping<T>
impl<T> DivAssign for Wrapping<T>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl IntBase for Wrapping<i128>
impl IntBase for Wrapping<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 Wrapping<i16>
impl IntBase for Wrapping<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 Wrapping<i32>
impl IntBase for Wrapping<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 Wrapping<i64>
impl IntBase for Wrapping<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 Wrapping<i8>
impl IntBase for Wrapping<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 Wrapping<isize>
impl IntBase for Wrapping<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 Wrapping<u128>
impl IntBase for Wrapping<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 Wrapping<u16>
impl IntBase for Wrapping<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 Wrapping<u32>
impl IntBase for Wrapping<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 Wrapping<u64>
impl IntBase for Wrapping<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 Wrapping<u8>
impl IntBase for Wrapping<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 Wrapping<usize>
impl IntBase for Wrapping<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> MulAssign<T> for Wrapping<T>
impl<T> MulAssign<T> for Wrapping<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 Wrapping<T>
impl<T> MulAssign for Wrapping<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl<T: Ord> Ord for Wrapping<T>
impl<T: Ord> Ord for Wrapping<T>
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: PartialOrd> PartialOrd for Wrapping<T>
impl<T: PartialOrd> PartialOrd for Wrapping<T>
Source§impl<T> RemAssign<T> for Wrapping<T>
impl<T> RemAssign<T> for Wrapping<T>
Source§fn rem_assign(&mut self, rhs: T)
fn rem_assign(&mut self, rhs: T)
Performs the
%=
operation. Read moreSource§impl<T> RemAssign for Wrapping<T>
impl<T> RemAssign for Wrapping<T>
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%=
operation. Read moreSource§impl ShlAssign<u32> for Wrapping<i128>
impl ShlAssign<u32> for Wrapping<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 Wrapping<i16>
impl ShlAssign<u32> for Wrapping<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 Wrapping<i32>
impl ShlAssign<u32> for Wrapping<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 Wrapping<i64>
impl ShlAssign<u32> for Wrapping<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 Wrapping<i8>
impl ShlAssign<u32> for Wrapping<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 Wrapping<isize>
impl ShlAssign<u32> for Wrapping<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 Wrapping<u128>
impl ShlAssign<u32> for Wrapping<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 Wrapping<u16>
impl ShlAssign<u32> for Wrapping<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 Wrapping<u32>
impl ShlAssign<u32> for Wrapping<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 Wrapping<u64>
impl ShlAssign<u32> for Wrapping<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 Wrapping<u8>
impl ShlAssign<u32> for Wrapping<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 Wrapping<usize>
impl ShlAssign<u32> for Wrapping<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 Wrapping<i128>
impl ShrAssign<u32> for Wrapping<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 Wrapping<i16>
impl ShrAssign<u32> for Wrapping<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 Wrapping<i32>
impl ShrAssign<u32> for Wrapping<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 Wrapping<i64>
impl ShrAssign<u32> for Wrapping<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 Wrapping<i8>
impl ShrAssign<u32> for Wrapping<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 Wrapping<isize>
impl ShrAssign<u32> for Wrapping<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 Wrapping<u128>
impl ShrAssign<u32> for Wrapping<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 Wrapping<u16>
impl ShrAssign<u32> for Wrapping<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 Wrapping<u32>
impl ShrAssign<u32> for Wrapping<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 Wrapping<u64>
impl ShrAssign<u32> for Wrapping<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 Wrapping<u8>
impl ShrAssign<u32> for Wrapping<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 Wrapping<usize>
impl ShrAssign<u32> for Wrapping<usize>
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moreSource§impl<T> SubAssign<T> for Wrapping<T>
impl<T> SubAssign<T> for Wrapping<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 Wrapping<T>
impl<T> SubAssign for Wrapping<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreSource§impl Unsigned for Wrapping<u128>
impl Unsigned for Wrapping<u128>
type Signed = Wrapping<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 Wrapping<u16>
impl Unsigned for Wrapping<u16>
type Signed = Wrapping<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 Wrapping<u32>
impl Unsigned for Wrapping<u32>
type Signed = Wrapping<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 Wrapping<u64>
impl Unsigned for Wrapping<u64>
type Signed = Wrapping<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 Wrapping<u8>
impl Unsigned for Wrapping<u8>
type Signed = Wrapping<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 Wrapping<usize>
impl Unsigned for Wrapping<usize>
type Signed = Wrapping<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
impl<T: Copy> Copy for Wrapping<T>
impl<T: Eq> Eq for Wrapping<T>
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> 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