Struct std::num::Wrapping 1.0.0
[−]
[src]
pub struct Wrapping<T>(pub T);
Provides intentionally-wrapped arithmetic on T.
Operations like + on u32 values is intended to never overflow,
and in some debug configurations overflow is detected and results
in a panic. While most arithmetic falls into this category, some
code explicitly expects and relies upon modular arithmetic (e.g.,
hashing).
Wrapping arithmetic can be achieved either through methods like
wrapping_add, or through the Wrapping<T> type, which says that
all standard arithmetic operations on the underlying value are
intended to have wrapping semantics.
Examples
fn main() { use std::num::Wrapping; let zero = Wrapping(0u32); let one = Wrapping(1u32); assert_eq!(std::u32::MAX, (zero - one).0); }use std::num::Wrapping; let zero = Wrapping(0u32); let one = Wrapping(1u32); assert_eq!(std::u32::MAX, (zero - one).0);
Trait Implementations
impl<T> Debug for Wrapping<T> where T: Debug
impl<T> Display for Wrapping<T> where T: Display1.10.0
impl Shl<usize> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<u8>
The method for the << operator
impl ShlAssign<usize> for Wrapping<u8>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<u8>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<u8>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<u16>
The method for the << operator
impl ShlAssign<usize> for Wrapping<u16>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<u16>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<u16>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<u32>
The method for the << operator
impl ShlAssign<usize> for Wrapping<u32>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<u32>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<u32>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<u64>
The method for the << operator
impl ShlAssign<usize> for Wrapping<u64>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<u64>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<u64>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<usize>
The method for the << operator
impl ShlAssign<usize> for Wrapping<usize>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<usize>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<usize>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<i8>
The method for the << operator
impl ShlAssign<usize> for Wrapping<i8>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<i8>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<i8>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<i16>
The method for the << operator
impl ShlAssign<usize> for Wrapping<i16>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<i16>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<i16>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<i32>
The method for the << operator
impl ShlAssign<usize> for Wrapping<i32>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<i32>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<i32>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<i64>
The method for the << operator
impl ShlAssign<usize> for Wrapping<i64>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<i64>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<i64>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Shl<usize> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the << operator
fn shl(self, other: usize) -> Wrapping<isize>
The method for the << operator
impl ShlAssign<usize> for Wrapping<isize>1.7.0
fn shl_assign(&mut self, other: usize)
The method for the <<= operator
impl Shr<usize> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Wrapping<isize>
The method for the >> operator
impl ShrAssign<usize> for Wrapping<isize>1.7.0
fn shr_assign(&mut self, other: usize)
The method for the >>= operator
impl Add<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the + operator
fn add(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the + operator
impl AddAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn add_assign(&mut self, other: Wrapping<usize>)
The method for the += operator
impl Sub<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the - operator
impl SubAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn sub_assign(&mut self, other: Wrapping<usize>)
The method for the -= operator
impl Mul<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the * operator
impl MulAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn mul_assign(&mut self, other: Wrapping<usize>)
The method for the *= operator
impl Div<Wrapping<usize>> for Wrapping<usize>1.3.0
type Output = Wrapping<usize>
The resulting type after applying the / operator
fn div(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the / operator
impl DivAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn div_assign(&mut self, other: Wrapping<usize>)
The method for the /= operator
impl Rem<Wrapping<usize>> for Wrapping<usize>1.7.0
type Output = Wrapping<usize>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the % operator
impl RemAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn rem_assign(&mut self, other: Wrapping<usize>)
The method for the %= operator
impl Not for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<usize>
The method for the unary ! operator
impl BitXor<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the ^ operator
impl BitXorAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<usize>)
The method for the ^= operator
impl BitOr<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the | operator
impl BitOrAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn bitor_assign(&mut self, other: Wrapping<usize>)
The method for the |= operator
impl BitAnd<Wrapping<usize>> for Wrapping<usize>
type Output = Wrapping<usize>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<usize>) -> Wrapping<usize>
The method for the & operator
impl BitAndAssign<Wrapping<usize>> for Wrapping<usize>1.8.0
fn bitand_assign(&mut self, other: Wrapping<usize>)
The method for the & operator
impl Neg for Wrapping<usize>1.10.0
type Output = Wrapping<usize>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<usize>
The method for the unary - operator
impl Add<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the + operator
fn add(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the + operator
impl AddAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn add_assign(&mut self, other: Wrapping<u8>)
The method for the += operator
impl Sub<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the - operator
impl SubAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn sub_assign(&mut self, other: Wrapping<u8>)
The method for the -= operator
impl Mul<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the * operator
impl MulAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn mul_assign(&mut self, other: Wrapping<u8>)
The method for the *= operator
impl Div<Wrapping<u8>> for Wrapping<u8>1.3.0
type Output = Wrapping<u8>
The resulting type after applying the / operator
fn div(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the / operator
impl DivAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn div_assign(&mut self, other: Wrapping<u8>)
The method for the /= operator
impl Rem<Wrapping<u8>> for Wrapping<u8>1.7.0
type Output = Wrapping<u8>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the % operator
impl RemAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn rem_assign(&mut self, other: Wrapping<u8>)
The method for the %= operator
impl Not for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<u8>
The method for the unary ! operator
impl BitXor<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the ^ operator
impl BitXorAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<u8>)
The method for the ^= operator
impl BitOr<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the | operator
impl BitOrAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn bitor_assign(&mut self, other: Wrapping<u8>)
The method for the |= operator
impl BitAnd<Wrapping<u8>> for Wrapping<u8>
type Output = Wrapping<u8>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<u8>) -> Wrapping<u8>
The method for the & operator
impl BitAndAssign<Wrapping<u8>> for Wrapping<u8>1.8.0
fn bitand_assign(&mut self, other: Wrapping<u8>)
The method for the & operator
impl Neg for Wrapping<u8>1.10.0
type Output = Wrapping<u8>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<u8>
The method for the unary - operator
impl Add<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the + operator
fn add(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the + operator
impl AddAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn add_assign(&mut self, other: Wrapping<u16>)
The method for the += operator
impl Sub<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the - operator
impl SubAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn sub_assign(&mut self, other: Wrapping<u16>)
The method for the -= operator
impl Mul<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the * operator
impl MulAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn mul_assign(&mut self, other: Wrapping<u16>)
The method for the *= operator
impl Div<Wrapping<u16>> for Wrapping<u16>1.3.0
type Output = Wrapping<u16>
The resulting type after applying the / operator
fn div(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the / operator
impl DivAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn div_assign(&mut self, other: Wrapping<u16>)
The method for the /= operator
impl Rem<Wrapping<u16>> for Wrapping<u16>1.7.0
type Output = Wrapping<u16>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the % operator
impl RemAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn rem_assign(&mut self, other: Wrapping<u16>)
The method for the %= operator
impl Not for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<u16>
The method for the unary ! operator
impl BitXor<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the ^ operator
impl BitXorAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<u16>)
The method for the ^= operator
impl BitOr<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the | operator
impl BitOrAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn bitor_assign(&mut self, other: Wrapping<u16>)
The method for the |= operator
impl BitAnd<Wrapping<u16>> for Wrapping<u16>
type Output = Wrapping<u16>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<u16>) -> Wrapping<u16>
The method for the & operator
impl BitAndAssign<Wrapping<u16>> for Wrapping<u16>1.8.0
fn bitand_assign(&mut self, other: Wrapping<u16>)
The method for the & operator
impl Neg for Wrapping<u16>1.10.0
type Output = Wrapping<u16>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<u16>
The method for the unary - operator
impl Add<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the + operator
fn add(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the + operator
impl AddAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn add_assign(&mut self, other: Wrapping<u32>)
The method for the += operator
impl Sub<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the - operator
impl SubAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn sub_assign(&mut self, other: Wrapping<u32>)
The method for the -= operator
impl Mul<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the * operator
impl MulAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn mul_assign(&mut self, other: Wrapping<u32>)
The method for the *= operator
impl Div<Wrapping<u32>> for Wrapping<u32>1.3.0
type Output = Wrapping<u32>
The resulting type after applying the / operator
fn div(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the / operator
impl DivAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn div_assign(&mut self, other: Wrapping<u32>)
The method for the /= operator
impl Rem<Wrapping<u32>> for Wrapping<u32>1.7.0
type Output = Wrapping<u32>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the % operator
impl RemAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn rem_assign(&mut self, other: Wrapping<u32>)
The method for the %= operator
impl Not for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<u32>
The method for the unary ! operator
impl BitXor<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the ^ operator
impl BitXorAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<u32>)
The method for the ^= operator
impl BitOr<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the | operator
impl BitOrAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn bitor_assign(&mut self, other: Wrapping<u32>)
The method for the |= operator
impl BitAnd<Wrapping<u32>> for Wrapping<u32>
type Output = Wrapping<u32>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<u32>) -> Wrapping<u32>
The method for the & operator
impl BitAndAssign<Wrapping<u32>> for Wrapping<u32>1.8.0
fn bitand_assign(&mut self, other: Wrapping<u32>)
The method for the & operator
impl Neg for Wrapping<u32>1.10.0
type Output = Wrapping<u32>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<u32>
The method for the unary - operator
impl Add<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the + operator
fn add(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the + operator
impl AddAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn add_assign(&mut self, other: Wrapping<u64>)
The method for the += operator
impl Sub<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the - operator
impl SubAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn sub_assign(&mut self, other: Wrapping<u64>)
The method for the -= operator
impl Mul<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the * operator
impl MulAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn mul_assign(&mut self, other: Wrapping<u64>)
The method for the *= operator
impl Div<Wrapping<u64>> for Wrapping<u64>1.3.0
type Output = Wrapping<u64>
The resulting type after applying the / operator
fn div(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the / operator
impl DivAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn div_assign(&mut self, other: Wrapping<u64>)
The method for the /= operator
impl Rem<Wrapping<u64>> for Wrapping<u64>1.7.0
type Output = Wrapping<u64>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the % operator
impl RemAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn rem_assign(&mut self, other: Wrapping<u64>)
The method for the %= operator
impl Not for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<u64>
The method for the unary ! operator
impl BitXor<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the ^ operator
impl BitXorAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<u64>)
The method for the ^= operator
impl BitOr<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the | operator
impl BitOrAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn bitor_assign(&mut self, other: Wrapping<u64>)
The method for the |= operator
impl BitAnd<Wrapping<u64>> for Wrapping<u64>
type Output = Wrapping<u64>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<u64>) -> Wrapping<u64>
The method for the & operator
impl BitAndAssign<Wrapping<u64>> for Wrapping<u64>1.8.0
fn bitand_assign(&mut self, other: Wrapping<u64>)
The method for the & operator
impl Neg for Wrapping<u64>1.10.0
type Output = Wrapping<u64>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<u64>
The method for the unary - operator
impl Add<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the + operator
fn add(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the + operator
impl AddAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn add_assign(&mut self, other: Wrapping<isize>)
The method for the += operator
impl Sub<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the - operator
impl SubAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn sub_assign(&mut self, other: Wrapping<isize>)
The method for the -= operator
impl Mul<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the * operator
impl MulAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn mul_assign(&mut self, other: Wrapping<isize>)
The method for the *= operator
impl Div<Wrapping<isize>> for Wrapping<isize>1.3.0
type Output = Wrapping<isize>
The resulting type after applying the / operator
fn div(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the / operator
impl DivAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn div_assign(&mut self, other: Wrapping<isize>)
The method for the /= operator
impl Rem<Wrapping<isize>> for Wrapping<isize>1.7.0
type Output = Wrapping<isize>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the % operator
impl RemAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn rem_assign(&mut self, other: Wrapping<isize>)
The method for the %= operator
impl Not for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<isize>
The method for the unary ! operator
impl BitXor<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the ^ operator
impl BitXorAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<isize>)
The method for the ^= operator
impl BitOr<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the | operator
impl BitOrAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn bitor_assign(&mut self, other: Wrapping<isize>)
The method for the |= operator
impl BitAnd<Wrapping<isize>> for Wrapping<isize>
type Output = Wrapping<isize>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<isize>) -> Wrapping<isize>
The method for the & operator
impl BitAndAssign<Wrapping<isize>> for Wrapping<isize>1.8.0
fn bitand_assign(&mut self, other: Wrapping<isize>)
The method for the & operator
impl Neg for Wrapping<isize>1.10.0
type Output = Wrapping<isize>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<isize>
The method for the unary - operator
impl Add<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the + operator
fn add(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the + operator
impl AddAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn add_assign(&mut self, other: Wrapping<i8>)
The method for the += operator
impl Sub<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the - operator
impl SubAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn sub_assign(&mut self, other: Wrapping<i8>)
The method for the -= operator
impl Mul<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the * operator
impl MulAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn mul_assign(&mut self, other: Wrapping<i8>)
The method for the *= operator
impl Div<Wrapping<i8>> for Wrapping<i8>1.3.0
type Output = Wrapping<i8>
The resulting type after applying the / operator
fn div(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the / operator
impl DivAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn div_assign(&mut self, other: Wrapping<i8>)
The method for the /= operator
impl Rem<Wrapping<i8>> for Wrapping<i8>1.7.0
type Output = Wrapping<i8>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the % operator
impl RemAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn rem_assign(&mut self, other: Wrapping<i8>)
The method for the %= operator
impl Not for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<i8>
The method for the unary ! operator
impl BitXor<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the ^ operator
impl BitXorAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<i8>)
The method for the ^= operator
impl BitOr<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the | operator
impl BitOrAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn bitor_assign(&mut self, other: Wrapping<i8>)
The method for the |= operator
impl BitAnd<Wrapping<i8>> for Wrapping<i8>
type Output = Wrapping<i8>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<i8>) -> Wrapping<i8>
The method for the & operator
impl BitAndAssign<Wrapping<i8>> for Wrapping<i8>1.8.0
fn bitand_assign(&mut self, other: Wrapping<i8>)
The method for the & operator
impl Neg for Wrapping<i8>1.10.0
type Output = Wrapping<i8>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<i8>
The method for the unary - operator
impl Add<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the + operator
fn add(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the + operator
impl AddAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn add_assign(&mut self, other: Wrapping<i16>)
The method for the += operator
impl Sub<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the - operator
impl SubAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn sub_assign(&mut self, other: Wrapping<i16>)
The method for the -= operator
impl Mul<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the * operator
impl MulAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn mul_assign(&mut self, other: Wrapping<i16>)
The method for the *= operator
impl Div<Wrapping<i16>> for Wrapping<i16>1.3.0
type Output = Wrapping<i16>
The resulting type after applying the / operator
fn div(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the / operator
impl DivAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn div_assign(&mut self, other: Wrapping<i16>)
The method for the /= operator
impl Rem<Wrapping<i16>> for Wrapping<i16>1.7.0
type Output = Wrapping<i16>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the % operator
impl RemAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn rem_assign(&mut self, other: Wrapping<i16>)
The method for the %= operator
impl Not for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<i16>
The method for the unary ! operator
impl BitXor<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the ^ operator
impl BitXorAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<i16>)
The method for the ^= operator
impl BitOr<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the | operator
impl BitOrAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn bitor_assign(&mut self, other: Wrapping<i16>)
The method for the |= operator
impl BitAnd<Wrapping<i16>> for Wrapping<i16>
type Output = Wrapping<i16>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<i16>) -> Wrapping<i16>
The method for the & operator
impl BitAndAssign<Wrapping<i16>> for Wrapping<i16>1.8.0
fn bitand_assign(&mut self, other: Wrapping<i16>)
The method for the & operator
impl Neg for Wrapping<i16>1.10.0
type Output = Wrapping<i16>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<i16>
The method for the unary - operator
impl Add<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the + operator
fn add(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the + operator
impl AddAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn add_assign(&mut self, other: Wrapping<i32>)
The method for the += operator
impl Sub<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the - operator
impl SubAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn sub_assign(&mut self, other: Wrapping<i32>)
The method for the -= operator
impl Mul<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the * operator
impl MulAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn mul_assign(&mut self, other: Wrapping<i32>)
The method for the *= operator
impl Div<Wrapping<i32>> for Wrapping<i32>1.3.0
type Output = Wrapping<i32>
The resulting type after applying the / operator
fn div(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the / operator
impl DivAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn div_assign(&mut self, other: Wrapping<i32>)
The method for the /= operator
impl Rem<Wrapping<i32>> for Wrapping<i32>1.7.0
type Output = Wrapping<i32>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the % operator
impl RemAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn rem_assign(&mut self, other: Wrapping<i32>)
The method for the %= operator
impl Not for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<i32>
The method for the unary ! operator
impl BitXor<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the ^ operator
impl BitXorAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<i32>)
The method for the ^= operator
impl BitOr<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the | operator
impl BitOrAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn bitor_assign(&mut self, other: Wrapping<i32>)
The method for the |= operator
impl BitAnd<Wrapping<i32>> for Wrapping<i32>
type Output = Wrapping<i32>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<i32>) -> Wrapping<i32>
The method for the & operator
impl BitAndAssign<Wrapping<i32>> for Wrapping<i32>1.8.0
fn bitand_assign(&mut self, other: Wrapping<i32>)
The method for the & operator
impl Neg for Wrapping<i32>1.10.0
type Output = Wrapping<i32>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<i32>
The method for the unary - operator
impl Add<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the + operator
fn add(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the + operator
impl AddAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn add_assign(&mut self, other: Wrapping<i64>)
The method for the += operator
impl Sub<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the - operator
fn sub(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the - operator
impl SubAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn sub_assign(&mut self, other: Wrapping<i64>)
The method for the -= operator
impl Mul<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the * operator
fn mul(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the * operator
impl MulAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn mul_assign(&mut self, other: Wrapping<i64>)
The method for the *= operator
impl Div<Wrapping<i64>> for Wrapping<i64>1.3.0
type Output = Wrapping<i64>
The resulting type after applying the / operator
fn div(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the / operator
impl DivAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn div_assign(&mut self, other: Wrapping<i64>)
The method for the /= operator
impl Rem<Wrapping<i64>> for Wrapping<i64>1.7.0
type Output = Wrapping<i64>
The resulting type after applying the % operator
fn rem(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the % operator
impl RemAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn rem_assign(&mut self, other: Wrapping<i64>)
The method for the %= operator
impl Not for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the ! operator
fn not(self) -> Wrapping<i64>
The method for the unary ! operator
impl BitXor<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the ^ operator
fn bitxor(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the ^ operator
impl BitXorAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn bitxor_assign(&mut self, other: Wrapping<i64>)
The method for the ^= operator
impl BitOr<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the | operator
fn bitor(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the | operator
impl BitOrAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn bitor_assign(&mut self, other: Wrapping<i64>)
The method for the |= operator
impl BitAnd<Wrapping<i64>> for Wrapping<i64>
type Output = Wrapping<i64>
The resulting type after applying the & operator
fn bitand(self, other: Wrapping<i64>) -> Wrapping<i64>
The method for the & operator
impl BitAndAssign<Wrapping<i64>> for Wrapping<i64>1.8.0
fn bitand_assign(&mut self, other: Wrapping<i64>)
The method for the & operator
impl Neg for Wrapping<i64>1.10.0
type Output = Wrapping<i64>
The resulting type after applying the - operator
fn neg(self) -> Wrapping<i64>
The method for the unary - operator
Derived Implementations
impl<T> Hash for Wrapping<T> where T: Hash
fn hash<__HT>(&self, __arg_0: &mut __HT) where __HT: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl<T> Default for Wrapping<T> where T: Default
impl<T> Copy for Wrapping<T> where T: Copy
impl<T> Clone for Wrapping<T> where T: Clone
fn clone(&self) -> Wrapping<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl<T> Ord for Wrapping<T> where T: Ord
fn cmp(&self, __arg_0: &Wrapping<T>) -> Ordering
This method returns an Ordering between self and other. Read more
impl<T> PartialOrd<Wrapping<T>> for Wrapping<T> where T: PartialOrd<T>
fn partial_cmp(&self, __arg_0: &Wrapping<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &Wrapping<T>) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &Wrapping<T>) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &Wrapping<T>) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &Wrapping<T>) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more