Struct Wrapping

struct Wrapping<T>(4461)

Provides intentionally-wrapped arithmetic on T.

Operations like + on u32 values are 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.

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

Examples

use std::num::Wrapping;

let zero = Wrapping(0u32);
let one = Wrapping(1u32);

assert_eq!(u32::MAX, (zero - one).0);

Layout

Wrapping<T> is guaranteed to have the same layout and ABI as T.

Implementations

impl Wrapping<i128>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(i128::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<i128>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100i128).abs(), Wrapping(100));
assert_eq!(Wrapping(-100i128).abs(), Wrapping(100));
assert_eq!(Wrapping(i128::MIN).abs(), Wrapping(i128::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<i128>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10i128).signum(), Wrapping(1));
assert_eq!(Wrapping(0i128).signum(), Wrapping(0));
assert_eq!(Wrapping(-10i128).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10i128).is_positive());
assert!(!Wrapping(-10i128).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10i128).is_negative());
assert!(!Wrapping(10i128).is_negative());

impl Wrapping<i128>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100i128);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0i128).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000i128);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai128);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<i128>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<i128>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai128);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<i128>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<i128>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai128);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai128);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i128).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<i16>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(i16::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<i16>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100i16).abs(), Wrapping(100));
assert_eq!(Wrapping(-100i16).abs(), Wrapping(100));
assert_eq!(Wrapping(i16::MIN).abs(), Wrapping(i16::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<i16>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10i16).signum(), Wrapping(1));
assert_eq!(Wrapping(0i16).signum(), Wrapping(0));
assert_eq!(Wrapping(-10i16).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10i16).is_positive());
assert!(!Wrapping(-10i16).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10i16).is_negative());
assert!(!Wrapping(10i16).is_negative());

impl Wrapping<i16>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100i16);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0i16).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000i16);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai16);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<i16>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<i16>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai16);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<i16>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<i16>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai16);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai16);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i16).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<i32>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100i32);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0i32).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000i32);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai32);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<i32>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<i32>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai32);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<i32>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<i32>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai32);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai32);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i32).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<i32>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(i32::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<i32>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100i32).abs(), Wrapping(100));
assert_eq!(Wrapping(-100i32).abs(), Wrapping(100));
assert_eq!(Wrapping(i32::MIN).abs(), Wrapping(i32::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<i32>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10i32).signum(), Wrapping(1));
assert_eq!(Wrapping(0i32).signum(), Wrapping(0));
assert_eq!(Wrapping(-10i32).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10i32).is_positive());
assert!(!Wrapping(-10i32).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10i32).is_negative());
assert!(!Wrapping(10i32).is_negative());

impl Wrapping<i64>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100i64);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0i64).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000i64);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai64);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<i64>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<i64>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai64);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<i64>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<i64>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai64);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai64);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i64).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<i64>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(i64::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<i64>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100i64).abs(), Wrapping(100));
assert_eq!(Wrapping(-100i64).abs(), Wrapping(100));
assert_eq!(Wrapping(i64::MIN).abs(), Wrapping(i64::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<i64>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10i64).signum(), Wrapping(1));
assert_eq!(Wrapping(0i64).signum(), Wrapping(0));
assert_eq!(Wrapping(-10i64).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10i64).is_positive());
assert!(!Wrapping(-10i64).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10i64).is_negative());
assert!(!Wrapping(10i64).is_negative());

impl Wrapping<i8>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(i8::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<i8>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100i8).abs(), Wrapping(100));
assert_eq!(Wrapping(-100i8).abs(), Wrapping(100));
assert_eq!(Wrapping(i8::MIN).abs(), Wrapping(i8::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<i8>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10i8).signum(), Wrapping(1));
assert_eq!(Wrapping(0i8).signum(), Wrapping(0));
assert_eq!(Wrapping(-10i8).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10i8).is_positive());
assert!(!Wrapping(-10i8).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10i8).is_negative());
assert!(!Wrapping(10i8).is_negative());

impl Wrapping<i8>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100i8);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0i8).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000i8);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai8);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<i8>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<i8>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai8);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<i8>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<i8>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai8);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ai8);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<isize>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(isize::MAX) >> 2;

assert_eq!(n.leading_zeros(), 3);
fn abs(self: Self) -> Wrapping<isize>

Computes the absolute value of self, wrapping around at the boundary of the type.

The only case where such wrapping can occur is when one takes the absolute value of the negative minimal value for the type this is a positive value that is too large to represent in the type. In such a case, this function returns MIN itself.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(100isize).abs(), Wrapping(100));
assert_eq!(Wrapping(-100isize).abs(), Wrapping(100));
assert_eq!(Wrapping(isize::MIN).abs(), Wrapping(isize::MIN));
assert_eq!(Wrapping(-128i8).abs().0 as u8, 128u8);
fn signum(self: Self) -> Wrapping<isize>

Returns a number representing sign of self.

  • 0 if the number is zero
  • 1 if the number is positive
  • -1 if the number is negative

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(10isize).signum(), Wrapping(1));
assert_eq!(Wrapping(0isize).signum(), Wrapping(0));
assert_eq!(Wrapping(-10isize).signum(), Wrapping(-1));
const fn is_positive(self: Self) -> bool

Returns true if self is positive and false if the number is zero or negative.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(10isize).is_positive());
assert!(!Wrapping(-10isize).is_positive());
const fn is_negative(self: Self) -> bool

Returns true if self is negative and false if the number is zero or positive.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(-10isize).is_negative());
assert!(!Wrapping(10isize).is_negative());

impl Wrapping<isize>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100isize);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0isize).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000isize);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Aisize);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<isize>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<isize>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Aisize);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<isize>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<isize>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Aisize);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Aisize);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3isize).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u128>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(u128::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16u128).is_power_of_two());
assert!(!Wrapping(10u128).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2u128).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3u128).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Wrapping<u128>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100u128);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0u128).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000u128);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au128);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<u128>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<u128>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au128);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<u128>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<u128>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au128);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au128);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3u128).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u16>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(u16::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16u16).is_power_of_two());
assert!(!Wrapping(10u16).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2u16).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3u16).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Wrapping<u16>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100u16);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0u16).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000u16);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au16);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<u16>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<u16>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au16);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<u16>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<u16>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au16);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au16);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3u16).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u32>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(u32::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16u32).is_power_of_two());
assert!(!Wrapping(10u32).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2u32).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3u32).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Wrapping<u32>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100u32);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0u32).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000u32);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au32);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<u32>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<u32>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au32);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<u32>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<u32>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au32);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au32);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3u32).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u64>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100u64);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0u64).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000u64);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au64);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<u64>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<u64>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au64);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<u64>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<u64>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au64);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au64);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3u64).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u64>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(u64::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16u64).is_power_of_two());
assert!(!Wrapping(10u64).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2u64).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3u64).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Wrapping<u8>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100u8);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0u8).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000u8);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au8);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<u8>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<u8>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au8);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<u8>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<u8>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au8);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Au8);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3u8).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<u8>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(u8::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16u8).is_power_of_two());
assert!(!Wrapping(10u8).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2u8).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3u8).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Wrapping<usize>

const fn count_ones(self: Self) -> u32

Returns the number of ones in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b01001100usize);

assert_eq!(n.count_ones(), 3);
const fn count_zeros(self: Self) -> u32

Returns the number of zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(!0usize).count_zeros(), 0);
const fn trailing_zeros(self: Self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0b0101000usize);

assert_eq!(n.trailing_zeros(), 3);
const fn rotate_left(self: Self, n: u32) -> Self

Shifts the bits to the left by a specified amount, n, wrapping the truncated bits to the end of the resulting integer.

Please note this isn't the same operation as the << shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0x76543210FEDCBA99);

assert_eq!(n.rotate_left(32), m);
const fn rotate_right(self: Self, n: u32) -> Self

Shifts the bits to the right by a specified amount, n, wrapping the truncated bits to the beginning of the resulting integer.

Please note this isn't the same operation as the >> shifting operator!

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i64> = Wrapping(0x0123456789ABCDEF);
let m: Wrapping<i64> = Wrapping(-0xFEDCBA987654322);

assert_eq!(n.rotate_right(4), m);
const fn swap_bytes(self: Self) -> Self

Reverses the byte order of the integer.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n: Wrapping<i16> = Wrapping(0b0000000_01010101);
assert_eq!(n, Wrapping(85));

let m = n.swap_bytes();

assert_eq!(m, Wrapping(0b01010101_00000000));
assert_eq!(m, Wrapping(21760));
const fn reverse_bits(self: Self) -> Self

Reverses the bit pattern of the integer.

Examples

Please note that this example is shared among integer types, which is why i16 is used.

Basic usage:

use std::num::Wrapping;

let n = Wrapping(0b0000000_01010101i16);
assert_eq!(n, Wrapping(85));

let m = n.reverse_bits();

assert_eq!(m.0 as u16, 0b10101010_00000000);
assert_eq!(m, Wrapping(-22016));
const fn from_be(x: Self) -> Self

Converts an integer from big endian to the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ausize);

if cfg!(target_endian = "big") {
    assert_eq!(<Wrapping<usize>>::from_be(n), n)
} else {
    assert_eq!(<Wrapping<usize>>::from_be(n), n.swap_bytes())
}
const fn from_le(x: Self) -> Self

Converts an integer from little endian to the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ausize);

if cfg!(target_endian = "little") {
    assert_eq!(<Wrapping<usize>>::from_le(n), n)
} else {
    assert_eq!(<Wrapping<usize>>::from_le(n), n.swap_bytes())
}
const fn to_be(self: Self) -> Self

Converts self to big endian from the target's endianness.

On big endian this is a no-op. On little endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ausize);

if cfg!(target_endian = "big") {
    assert_eq!(n.to_be(), n)
} else {
    assert_eq!(n.to_be(), n.swap_bytes())
}
const fn to_le(self: Self) -> Self

Converts self to little endian from the target's endianness.

On little endian this is a no-op. On big endian the bytes are swapped.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(0x1Ausize);

if cfg!(target_endian = "little") {
    assert_eq!(n.to_le(), n)
} else {
    assert_eq!(n.to_le(), n.swap_bytes())
}
fn pow(self: Self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3usize).pow(4), Wrapping(81));

Results that are too large are wrapped:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert_eq!(Wrapping(3i8).pow(5), Wrapping(-13));
assert_eq!(Wrapping(3i8).pow(6), Wrapping(-39));

impl Wrapping<usize>

const fn leading_zeros(self: Self) -> u32

Returns the number of leading zeros in the binary representation of self.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

let n = Wrapping(usize::MAX) >> 2;

assert_eq!(n.leading_zeros(), 2);
fn is_power_of_two(self: Self) -> bool

Returns true if and only if self == 2^k for some k.

Examples

Basic usage:

#![feature(wrapping_int_impl)]
use std::num::Wrapping;

assert!(Wrapping(16usize).is_power_of_two());
assert!(!Wrapping(10usize).is_power_of_two());
fn next_power_of_two(self: Self) -> Self

Returns the smallest power of two greater than or equal to self.

When return value overflows (i.e., self > (1 << (N-1)) for type uN), overflows to 2^N = 0.

Examples

Basic usage:

#![feature(wrapping_next_power_of_two)]
use std::num::Wrapping;

assert_eq!(Wrapping(2usize).next_power_of_two(), Wrapping(2));
assert_eq!(Wrapping(3usize).next_power_of_two(), Wrapping(4));
assert_eq!(Wrapping(200_u8).next_power_of_two(), Wrapping(0));

impl Add for Wrapping<i128>

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

impl Add for Wrapping<i128>

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

impl Add for Wrapping<i16>

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

impl Add for Wrapping<i16>

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

impl Add for Wrapping<i32>

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

impl Add for Wrapping<i32>

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

impl Add for Wrapping<i64>

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

impl Add for Wrapping<i64>

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

impl Add for Wrapping<i8>

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

impl Add for Wrapping<i8>

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

impl Add for Wrapping<isize>

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

impl Add for Wrapping<isize>

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

impl Add for Wrapping<u128>

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

impl Add for Wrapping<u128>

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

impl Add for Wrapping<u16>

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

impl Add for Wrapping<u16>

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

impl Add for Wrapping<u32>

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

impl Add for Wrapping<u32>

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

impl Add for Wrapping<u64>

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

impl Add for Wrapping<u64>

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

impl Add for Wrapping<u8>

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

impl Add for Wrapping<u8>

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

impl Add for Wrapping<usize>

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

impl Add for Wrapping<usize>

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

impl AddAssign for Wrapping<i128>

fn add_assign(self: &mut Self, other: &i128)

impl AddAssign for Wrapping<i128>

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

impl AddAssign for Wrapping<i128>

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

impl AddAssign for Wrapping<i128>

fn add_assign(self: &mut Self, other: i128)

impl AddAssign for Wrapping<i16>

fn add_assign(self: &mut Self, other: &i16)

impl AddAssign for Wrapping<i16>

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

impl AddAssign for Wrapping<i16>

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

impl AddAssign for Wrapping<i16>

fn add_assign(self: &mut Self, other: i16)

impl AddAssign for Wrapping<i32>

fn add_assign(self: &mut Self, other: &i32)

impl AddAssign for Wrapping<i32>

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

impl AddAssign for Wrapping<i32>

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

impl AddAssign for Wrapping<i32>

fn add_assign(self: &mut Self, other: i32)

impl AddAssign for Wrapping<i64>

fn add_assign(self: &mut Self, other: &i64)

impl AddAssign for Wrapping<i64>

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

impl AddAssign for Wrapping<i64>

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

impl AddAssign for Wrapping<i64>

fn add_assign(self: &mut Self, other: i64)

impl AddAssign for Wrapping<i8>

fn add_assign(self: &mut Self, other: &i8)

impl AddAssign for Wrapping<i8>

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

impl AddAssign for Wrapping<i8>

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

impl AddAssign for Wrapping<i8>

fn add_assign(self: &mut Self, other: i8)

impl AddAssign for Wrapping<isize>

fn add_assign(self: &mut Self, other: &isize)

impl AddAssign for Wrapping<isize>

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

impl AddAssign for Wrapping<isize>

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

impl AddAssign for Wrapping<isize>

fn add_assign(self: &mut Self, other: isize)

impl AddAssign for Wrapping<u128>

fn add_assign(self: &mut Self, other: u128)

impl AddAssign for Wrapping<u128>

fn add_assign(self: &mut Self, other: &u128)

impl AddAssign for Wrapping<u128>

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

impl AddAssign for Wrapping<u128>

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

impl AddAssign for Wrapping<u16>

fn add_assign(self: &mut Self, other: u16)

impl AddAssign for Wrapping<u16>

fn add_assign(self: &mut Self, other: &u16)

impl AddAssign for Wrapping<u16>

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

impl AddAssign for Wrapping<u16>

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

impl AddAssign for Wrapping<u32>

fn add_assign(self: &mut Self, other: u32)

impl AddAssign for Wrapping<u32>

fn add_assign(self: &mut Self, other: &u32)

impl AddAssign for Wrapping<u32>

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

impl AddAssign for Wrapping<u32>

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

impl AddAssign for Wrapping<u64>

fn add_assign(self: &mut Self, other: u64)

impl AddAssign for Wrapping<u64>

fn add_assign(self: &mut Self, other: &u64)

impl AddAssign for Wrapping<u64>

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

impl AddAssign for Wrapping<u64>

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

impl AddAssign for Wrapping<u8>

fn add_assign(self: &mut Self, other: u8)

impl AddAssign for Wrapping<u8>

fn add_assign(self: &mut Self, other: &u8)

impl AddAssign for Wrapping<u8>

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

impl AddAssign for Wrapping<u8>

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

impl AddAssign for Wrapping<usize>

fn add_assign(self: &mut Self, other: usize)

impl AddAssign for Wrapping<usize>

fn add_assign(self: &mut Self, other: &usize)

impl AddAssign for Wrapping<usize>

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

impl AddAssign for Wrapping<usize>

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

impl BitAnd for Wrapping<i128>

fn bitand(self: Self, other: &Wrapping<i128>) -> <Wrapping<i128> as BitAnd<Wrapping<i128>>>::Output

impl BitAnd for Wrapping<i128>

fn bitand(self: Self, other: Wrapping<i128>) -> Wrapping<i128>

impl BitAnd for Wrapping<i16>

fn bitand(self: Self, other: &Wrapping<i16>) -> <Wrapping<i16> as BitAnd<Wrapping<i16>>>::Output

impl BitAnd for Wrapping<i16>

fn bitand(self: Self, other: Wrapping<i16>) -> Wrapping<i16>

impl BitAnd for Wrapping<i32>

fn bitand(self: Self, other: &Wrapping<i32>) -> <Wrapping<i32> as BitAnd<Wrapping<i32>>>::Output

impl BitAnd for Wrapping<i32>

fn bitand(self: Self, other: Wrapping<i32>) -> Wrapping<i32>

impl BitAnd for Wrapping<i64>

fn bitand(self: Self, other: &Wrapping<i64>) -> <Wrapping<i64> as BitAnd<Wrapping<i64>>>::Output

impl BitAnd for Wrapping<i64>

fn bitand(self: Self, other: Wrapping<i64>) -> Wrapping<i64>

impl BitAnd for Wrapping<i8>

fn bitand(self: Self, other: &Wrapping<i8>) -> <Wrapping<i8> as BitAnd<Wrapping<i8>>>::Output

impl BitAnd for Wrapping<i8>

fn bitand(self: Self, other: Wrapping<i8>) -> Wrapping<i8>

impl BitAnd for Wrapping<isize>

fn bitand(self: Self, other: &Wrapping<isize>) -> <Wrapping<isize> as BitAnd<Wrapping<isize>>>::Output

impl BitAnd for Wrapping<isize>

fn bitand(self: Self, other: Wrapping<isize>) -> Wrapping<isize>

impl BitAnd for Wrapping<u128>

fn bitand(self: Self, other: &Wrapping<u128>) -> <Wrapping<u128> as BitAnd<Wrapping<u128>>>::Output

impl BitAnd for Wrapping<u128>

fn bitand(self: Self, other: Wrapping<u128>) -> Wrapping<u128>

impl BitAnd for Wrapping<u16>

fn bitand(self: Self, other: &Wrapping<u16>) -> <Wrapping<u16> as BitAnd<Wrapping<u16>>>::Output

impl BitAnd for Wrapping<u16>

fn bitand(self: Self, other: Wrapping<u16>) -> Wrapping<u16>

impl BitAnd for Wrapping<u32>

fn bitand(self: Self, other: &Wrapping<u32>) -> <Wrapping<u32> as BitAnd<Wrapping<u32>>>::Output

impl BitAnd for Wrapping<u32>

fn bitand(self: Self, other: Wrapping<u32>) -> Wrapping<u32>

impl BitAnd for Wrapping<u64>

fn bitand(self: Self, other: &Wrapping<u64>) -> <Wrapping<u64> as BitAnd<Wrapping<u64>>>::Output

impl BitAnd for Wrapping<u64>

fn bitand(self: Self, other: Wrapping<u64>) -> Wrapping<u64>

impl BitAnd for Wrapping<u8>

fn bitand(self: Self, other: &Wrapping<u8>) -> <Wrapping<u8> as BitAnd<Wrapping<u8>>>::Output

impl BitAnd for Wrapping<u8>

fn bitand(self: Self, other: Wrapping<u8>) -> Wrapping<u8>

impl BitAnd for Wrapping<usize>

fn bitand(self: Self, other: &Wrapping<usize>) -> <Wrapping<usize> as BitAnd<Wrapping<usize>>>::Output

impl BitAnd for Wrapping<usize>

fn bitand(self: Self, other: Wrapping<usize>) -> Wrapping<usize>

impl BitAndAssign for Wrapping<i128>

fn bitand_assign(self: &mut Self, other: i128)

impl BitAndAssign for Wrapping<i128>

fn bitand_assign(self: &mut Self, other: &i128)

impl BitAndAssign for Wrapping<i128>

fn bitand_assign(self: &mut Self, other: Wrapping<i128>)

impl BitAndAssign for Wrapping<i128>

fn bitand_assign(self: &mut Self, other: &Wrapping<i128>)

impl BitAndAssign for Wrapping<i16>

fn bitand_assign(self: &mut Self, other: i16)

impl BitAndAssign for Wrapping<i16>

fn bitand_assign(self: &mut Self, other: &i16)

impl BitAndAssign for Wrapping<i16>

fn bitand_assign(self: &mut Self, other: Wrapping<i16>)

impl BitAndAssign for Wrapping<i16>

fn bitand_assign(self: &mut Self, other: &Wrapping<i16>)

impl BitAndAssign for Wrapping<i32>

fn bitand_assign(self: &mut Self, other: i32)

impl BitAndAssign for Wrapping<i32>

fn bitand_assign(self: &mut Self, other: &i32)

impl BitAndAssign for Wrapping<i32>

fn bitand_assign(self: &mut Self, other: Wrapping<i32>)

impl BitAndAssign for Wrapping<i32>

fn bitand_assign(self: &mut Self, other: &Wrapping<i32>)

impl BitAndAssign for Wrapping<i64>

fn bitand_assign(self: &mut Self, other: i64)

impl BitAndAssign for Wrapping<i64>

fn bitand_assign(self: &mut Self, other: &i64)

impl BitAndAssign for Wrapping<i64>

fn bitand_assign(self: &mut Self, other: Wrapping<i64>)

impl BitAndAssign for Wrapping<i64>

fn bitand_assign(self: &mut Self, other: &Wrapping<i64>)

impl BitAndAssign for Wrapping<i8>

fn bitand_assign(self: &mut Self, other: i8)

impl BitAndAssign for Wrapping<i8>

fn bitand_assign(self: &mut Self, other: &i8)

impl BitAndAssign for Wrapping<i8>

fn bitand_assign(self: &mut Self, other: Wrapping<i8>)

impl BitAndAssign for Wrapping<i8>

fn bitand_assign(self: &mut Self, other: &Wrapping<i8>)

impl BitAndAssign for Wrapping<isize>

fn bitand_assign(self: &mut Self, other: isize)

impl BitAndAssign for Wrapping<isize>

fn bitand_assign(self: &mut Self, other: &isize)

impl BitAndAssign for Wrapping<isize>

fn bitand_assign(self: &mut Self, other: Wrapping<isize>)

impl BitAndAssign for Wrapping<isize>

fn bitand_assign(self: &mut Self, other: &Wrapping<isize>)

impl BitAndAssign for Wrapping<u128>

fn bitand_assign(self: &mut Self, other: u128)

impl BitAndAssign for Wrapping<u128>

fn bitand_assign(self: &mut Self, other: &u128)

impl BitAndAssign for Wrapping<u128>

fn bitand_assign(self: &mut Self, other: Wrapping<u128>)

impl BitAndAssign for Wrapping<u128>

fn bitand_assign(self: &mut Self, other: &Wrapping<u128>)

impl BitAndAssign for Wrapping<u16>

fn bitand_assign(self: &mut Self, other: u16)

impl BitAndAssign for Wrapping<u16>

fn bitand_assign(self: &mut Self, other: &u16)

impl BitAndAssign for Wrapping<u16>

fn bitand_assign(self: &mut Self, other: Wrapping<u16>)

impl BitAndAssign for Wrapping<u16>

fn bitand_assign(self: &mut Self, other: &Wrapping<u16>)

impl BitAndAssign for Wrapping<u32>

fn bitand_assign(self: &mut Self, other: u32)

impl BitAndAssign for Wrapping<u32>

fn bitand_assign(self: &mut Self, other: &u32)

impl BitAndAssign for Wrapping<u32>

fn bitand_assign(self: &mut Self, other: Wrapping<u32>)

impl BitAndAssign for Wrapping<u32>

fn bitand_assign(self: &mut Self, other: &Wrapping<u32>)

impl BitAndAssign for Wrapping<u64>

fn bitand_assign(self: &mut Self, other: u64)

impl BitAndAssign for Wrapping<u64>

fn bitand_assign(self: &mut Self, other: &u64)

impl BitAndAssign for Wrapping<u64>

fn bitand_assign(self: &mut Self, other: Wrapping<u64>)

impl BitAndAssign for Wrapping<u64>

fn bitand_assign(self: &mut Self, other: &Wrapping<u64>)

impl BitAndAssign for Wrapping<u8>

fn bitand_assign(self: &mut Self, other: u8)

impl BitAndAssign for Wrapping<u8>

fn bitand_assign(self: &mut Self, other: &u8)

impl BitAndAssign for Wrapping<u8>

fn bitand_assign(self: &mut Self, other: Wrapping<u8>)

impl BitAndAssign for Wrapping<u8>

fn bitand_assign(self: &mut Self, other: &Wrapping<u8>)

impl BitAndAssign for Wrapping<usize>

fn bitand_assign(self: &mut Self, other: usize)

impl BitAndAssign for Wrapping<usize>

fn bitand_assign(self: &mut Self, other: &usize)

impl BitAndAssign for Wrapping<usize>

fn bitand_assign(self: &mut Self, other: Wrapping<usize>)

impl BitAndAssign for Wrapping<usize>

fn bitand_assign(self: &mut Self, other: &Wrapping<usize>)

impl BitOr for Wrapping<i128>

fn bitor(self: Self, other: Wrapping<i128>) -> Wrapping<i128>

impl BitOr for Wrapping<i128>

fn bitor(self: Self, other: &Wrapping<i128>) -> <Wrapping<i128> as BitOr<Wrapping<i128>>>::Output

impl BitOr for Wrapping<i16>

fn bitor(self: Self, other: Wrapping<i16>) -> Wrapping<i16>

impl BitOr for Wrapping<i16>

fn bitor(self: Self, other: &Wrapping<i16>) -> <Wrapping<i16> as BitOr<Wrapping<i16>>>::Output

impl BitOr for Wrapping<i32>

fn bitor(self: Self, other: Wrapping<i32>) -> Wrapping<i32>

impl BitOr for Wrapping<i32>

fn bitor(self: Self, other: &Wrapping<i32>) -> <Wrapping<i32> as BitOr<Wrapping<i32>>>::Output

impl BitOr for Wrapping<i64>

fn bitor(self: Self, other: Wrapping<i64>) -> Wrapping<i64>

impl BitOr for Wrapping<i64>

fn bitor(self: Self, other: &Wrapping<i64>) -> <Wrapping<i64> as BitOr<Wrapping<i64>>>::Output

impl BitOr for Wrapping<i8>

fn bitor(self: Self, other: Wrapping<i8>) -> Wrapping<i8>

impl BitOr for Wrapping<i8>

fn bitor(self: Self, other: &Wrapping<i8>) -> <Wrapping<i8> as BitOr<Wrapping<i8>>>::Output

impl BitOr for Wrapping<isize>

fn bitor(self: Self, other: Wrapping<isize>) -> Wrapping<isize>

impl BitOr for Wrapping<isize>

fn bitor(self: Self, other: &Wrapping<isize>) -> <Wrapping<isize> as BitOr<Wrapping<isize>>>::Output

impl BitOr for Wrapping<u128>

fn bitor(self: Self, other: Wrapping<u128>) -> Wrapping<u128>

impl BitOr for Wrapping<u128>

fn bitor(self: Self, other: &Wrapping<u128>) -> <Wrapping<u128> as BitOr<Wrapping<u128>>>::Output

impl BitOr for Wrapping<u16>

fn bitor(self: Self, other: Wrapping<u16>) -> Wrapping<u16>

impl BitOr for Wrapping<u16>

fn bitor(self: Self, other: &Wrapping<u16>) -> <Wrapping<u16> as BitOr<Wrapping<u16>>>::Output

impl BitOr for Wrapping<u32>

fn bitor(self: Self, other: Wrapping<u32>) -> Wrapping<u32>

impl BitOr for Wrapping<u32>

fn bitor(self: Self, other: &Wrapping<u32>) -> <Wrapping<u32> as BitOr<Wrapping<u32>>>::Output

impl BitOr for Wrapping<u64>

fn bitor(self: Self, other: Wrapping<u64>) -> Wrapping<u64>

impl BitOr for Wrapping<u64>

fn bitor(self: Self, other: &Wrapping<u64>) -> <Wrapping<u64> as BitOr<Wrapping<u64>>>::Output

impl BitOr for Wrapping<u8>

fn bitor(self: Self, other: Wrapping<u8>) -> Wrapping<u8>

impl BitOr for Wrapping<u8>

fn bitor(self: Self, other: &Wrapping<u8>) -> <Wrapping<u8> as BitOr<Wrapping<u8>>>::Output

impl BitOr for Wrapping<usize>

fn bitor(self: Self, other: Wrapping<usize>) -> Wrapping<usize>

impl BitOr for Wrapping<usize>

fn bitor(self: Self, other: &Wrapping<usize>) -> <Wrapping<usize> as BitOr<Wrapping<usize>>>::Output

impl BitOrAssign for Wrapping<i128>

fn bitor_assign(self: &mut Self, other: Wrapping<i128>)

impl BitOrAssign for Wrapping<i128>

fn bitor_assign(self: &mut Self, other: &Wrapping<i128>)

impl BitOrAssign for Wrapping<i128>

fn bitor_assign(self: &mut Self, other: i128)

impl BitOrAssign for Wrapping<i128>

fn bitor_assign(self: &mut Self, other: &i128)

impl BitOrAssign for Wrapping<i16>

fn bitor_assign(self: &mut Self, other: Wrapping<i16>)

impl BitOrAssign for Wrapping<i16>

fn bitor_assign(self: &mut Self, other: &Wrapping<i16>)

impl BitOrAssign for Wrapping<i16>

fn bitor_assign(self: &mut Self, other: i16)

impl BitOrAssign for Wrapping<i16>

fn bitor_assign(self: &mut Self, other: &i16)

impl BitOrAssign for Wrapping<i32>

fn bitor_assign(self: &mut Self, other: Wrapping<i32>)

impl BitOrAssign for Wrapping<i32>

fn bitor_assign(self: &mut Self, other: &Wrapping<i32>)

impl BitOrAssign for Wrapping<i32>

fn bitor_assign(self: &mut Self, other: i32)

impl BitOrAssign for Wrapping<i32>

fn bitor_assign(self: &mut Self, other: &i32)

impl BitOrAssign for Wrapping<i64>

fn bitor_assign(self: &mut Self, other: Wrapping<i64>)

impl BitOrAssign for Wrapping<i64>

fn bitor_assign(self: &mut Self, other: &Wrapping<i64>)

impl BitOrAssign for Wrapping<i64>

fn bitor_assign(self: &mut Self, other: i64)

impl BitOrAssign for Wrapping<i64>

fn bitor_assign(self: &mut Self, other: &i64)

impl BitOrAssign for Wrapping<i8>

fn bitor_assign(self: &mut Self, other: Wrapping<i8>)

impl BitOrAssign for Wrapping<i8>

fn bitor_assign(self: &mut Self, other: &Wrapping<i8>)

impl BitOrAssign for Wrapping<i8>

fn bitor_assign(self: &mut Self, other: i8)

impl BitOrAssign for Wrapping<i8>

fn bitor_assign(self: &mut Self, other: &i8)

impl BitOrAssign for Wrapping<isize>

fn bitor_assign(self: &mut Self, other: Wrapping<isize>)

impl BitOrAssign for Wrapping<isize>

fn bitor_assign(self: &mut Self, other: &Wrapping<isize>)

impl BitOrAssign for Wrapping<isize>

fn bitor_assign(self: &mut Self, other: isize)

impl BitOrAssign for Wrapping<isize>

fn bitor_assign(self: &mut Self, other: &isize)

impl BitOrAssign for Wrapping<u128>

fn bitor_assign(self: &mut Self, other: Wrapping<u128>)

impl BitOrAssign for Wrapping<u128>

fn bitor_assign(self: &mut Self, other: &Wrapping<u128>)

impl BitOrAssign for Wrapping<u128>

fn bitor_assign(self: &mut Self, other: u128)

impl BitOrAssign for Wrapping<u128>

fn bitor_assign(self: &mut Self, other: &u128)

impl BitOrAssign for Wrapping<u16>

fn bitor_assign(self: &mut Self, other: Wrapping<u16>)

impl BitOrAssign for Wrapping<u16>

fn bitor_assign(self: &mut Self, other: &Wrapping<u16>)

impl BitOrAssign for Wrapping<u16>

fn bitor_assign(self: &mut Self, other: u16)

impl BitOrAssign for Wrapping<u16>

fn bitor_assign(self: &mut Self, other: &u16)

impl BitOrAssign for Wrapping<u32>

fn bitor_assign(self: &mut Self, other: Wrapping<u32>)

impl BitOrAssign for Wrapping<u32>

fn bitor_assign(self: &mut Self, other: &Wrapping<u32>)

impl BitOrAssign for Wrapping<u32>

fn bitor_assign(self: &mut Self, other: u32)

impl BitOrAssign for Wrapping<u32>

fn bitor_assign(self: &mut Self, other: &u32)

impl BitOrAssign for Wrapping<u64>

fn bitor_assign(self: &mut Self, other: Wrapping<u64>)

impl BitOrAssign for Wrapping<u64>

fn bitor_assign(self: &mut Self, other: &Wrapping<u64>)

impl BitOrAssign for Wrapping<u64>

fn bitor_assign(self: &mut Self, other: u64)

impl BitOrAssign for Wrapping<u64>

fn bitor_assign(self: &mut Self, other: &u64)

impl BitOrAssign for Wrapping<u8>

fn bitor_assign(self: &mut Self, other: Wrapping<u8>)

impl BitOrAssign for Wrapping<u8>

fn bitor_assign(self: &mut Self, other: &Wrapping<u8>)

impl BitOrAssign for Wrapping<u8>

fn bitor_assign(self: &mut Self, other: u8)

impl BitOrAssign for Wrapping<u8>

fn bitor_assign(self: &mut Self, other: &u8)

impl BitOrAssign for Wrapping<usize>

fn bitor_assign(self: &mut Self, other: Wrapping<usize>)

impl BitOrAssign for Wrapping<usize>

fn bitor_assign(self: &mut Self, other: &Wrapping<usize>)

impl BitOrAssign for Wrapping<usize>

fn bitor_assign(self: &mut Self, other: usize)

impl BitOrAssign for Wrapping<usize>

fn bitor_assign(self: &mut Self, other: &usize)

impl BitXor for Wrapping<i128>

fn bitxor(self: Self, other: &Wrapping<i128>) -> <Wrapping<i128> as BitXor<Wrapping<i128>>>::Output

impl BitXor for Wrapping<i128>

fn bitxor(self: Self, other: Wrapping<i128>) -> Wrapping<i128>

impl BitXor for Wrapping<i16>

fn bitxor(self: Self, other: &Wrapping<i16>) -> <Wrapping<i16> as BitXor<Wrapping<i16>>>::Output

impl BitXor for Wrapping<i16>

fn bitxor(self: Self, other: Wrapping<i16>) -> Wrapping<i16>

impl BitXor for Wrapping<i32>

fn bitxor(self: Self, other: &Wrapping<i32>) -> <Wrapping<i32> as BitXor<Wrapping<i32>>>::Output

impl BitXor for Wrapping<i32>

fn bitxor(self: Self, other: Wrapping<i32>) -> Wrapping<i32>

impl BitXor for Wrapping<i64>

fn bitxor(self: Self, other: &Wrapping<i64>) -> <Wrapping<i64> as BitXor<Wrapping<i64>>>::Output

impl BitXor for Wrapping<i64>

fn bitxor(self: Self, other: Wrapping<i64>) -> Wrapping<i64>

impl BitXor for Wrapping<i8>

fn bitxor(self: Self, other: &Wrapping<i8>) -> <Wrapping<i8> as BitXor<Wrapping<i8>>>::Output

impl BitXor for Wrapping<i8>

fn bitxor(self: Self, other: Wrapping<i8>) -> Wrapping<i8>

impl BitXor for Wrapping<isize>

fn bitxor(self: Self, other: &Wrapping<isize>) -> <Wrapping<isize> as BitXor<Wrapping<isize>>>::Output

impl BitXor for Wrapping<isize>

fn bitxor(self: Self, other: Wrapping<isize>) -> Wrapping<isize>

impl BitXor for Wrapping<u128>

fn bitxor(self: Self, other: &Wrapping<u128>) -> <Wrapping<u128> as BitXor<Wrapping<u128>>>::Output

impl BitXor for Wrapping<u128>

fn bitxor(self: Self, other: Wrapping<u128>) -> Wrapping<u128>

impl BitXor for Wrapping<u16>

fn bitxor(self: Self, other: &Wrapping<u16>) -> <Wrapping<u16> as BitXor<Wrapping<u16>>>::Output

impl BitXor for Wrapping<u16>

fn bitxor(self: Self, other: Wrapping<u16>) -> Wrapping<u16>

impl BitXor for Wrapping<u32>

fn bitxor(self: Self, other: &Wrapping<u32>) -> <Wrapping<u32> as BitXor<Wrapping<u32>>>::Output

impl BitXor for Wrapping<u32>

fn bitxor(self: Self, other: Wrapping<u32>) -> Wrapping<u32>

impl BitXor for Wrapping<u64>

fn bitxor(self: Self, other: &Wrapping<u64>) -> <Wrapping<u64> as BitXor<Wrapping<u64>>>::Output

impl BitXor for Wrapping<u64>

fn bitxor(self: Self, other: Wrapping<u64>) -> Wrapping<u64>

impl BitXor for Wrapping<u8>

fn bitxor(self: Self, other: &Wrapping<u8>) -> <Wrapping<u8> as BitXor<Wrapping<u8>>>::Output

impl BitXor for Wrapping<u8>

fn bitxor(self: Self, other: Wrapping<u8>) -> Wrapping<u8>

impl BitXor for Wrapping<usize>

fn bitxor(self: Self, other: &Wrapping<usize>) -> <Wrapping<usize> as BitXor<Wrapping<usize>>>::Output

impl BitXor for Wrapping<usize>

fn bitxor(self: Self, other: Wrapping<usize>) -> Wrapping<usize>

impl BitXorAssign for Wrapping<i128>

fn bitxor_assign(self: &mut Self, other: &i128)

impl BitXorAssign for Wrapping<i128>

fn bitxor_assign(self: &mut Self, other: Wrapping<i128>)

impl BitXorAssign for Wrapping<i128>

fn bitxor_assign(self: &mut Self, other: &Wrapping<i128>)

impl BitXorAssign for Wrapping<i128>

fn bitxor_assign(self: &mut Self, other: i128)

impl BitXorAssign for Wrapping<i16>

fn bitxor_assign(self: &mut Self, other: &i16)

impl BitXorAssign for Wrapping<i16>

fn bitxor_assign(self: &mut Self, other: Wrapping<i16>)

impl BitXorAssign for Wrapping<i16>

fn bitxor_assign(self: &mut Self, other: &Wrapping<i16>)

impl BitXorAssign for Wrapping<i16>

fn bitxor_assign(self: &mut Self, other: i16)

impl BitXorAssign for Wrapping<i32>

fn bitxor_assign(self: &mut Self, other: &i32)

impl BitXorAssign for Wrapping<i32>

fn bitxor_assign(self: &mut Self, other: Wrapping<i32>)

impl BitXorAssign for Wrapping<i32>

fn bitxor_assign(self: &mut Self, other: &Wrapping<i32>)

impl BitXorAssign for Wrapping<i32>

fn bitxor_assign(self: &mut Self, other: i32)

impl BitXorAssign for Wrapping<i64>

fn bitxor_assign(self: &mut Self, other: &i64)

impl BitXorAssign for Wrapping<i64>

fn bitxor_assign(self: &mut Self, other: Wrapping<i64>)

impl BitXorAssign for Wrapping<i64>

fn bitxor_assign(self: &mut Self, other: &Wrapping<i64>)

impl BitXorAssign for Wrapping<i64>

fn bitxor_assign(self: &mut Self, other: i64)

impl BitXorAssign for Wrapping<i8>

fn bitxor_assign(self: &mut Self, other: i8)

impl BitXorAssign for Wrapping<i8>

fn bitxor_assign(self: &mut Self, other: &i8)

impl BitXorAssign for Wrapping<i8>

fn bitxor_assign(self: &mut Self, other: Wrapping<i8>)

impl BitXorAssign for Wrapping<i8>

fn bitxor_assign(self: &mut Self, other: &Wrapping<i8>)

impl BitXorAssign for Wrapping<isize>

fn bitxor_assign(self: &mut Self, other: isize)

impl BitXorAssign for Wrapping<isize>

fn bitxor_assign(self: &mut Self, other: &isize)

impl BitXorAssign for Wrapping<isize>

fn bitxor_assign(self: &mut Self, other: Wrapping<isize>)

impl BitXorAssign for Wrapping<isize>

fn bitxor_assign(self: &mut Self, other: &Wrapping<isize>)

impl BitXorAssign for Wrapping<u128>

fn bitxor_assign(self: &mut Self, other: u128)

impl BitXorAssign for Wrapping<u128>

fn bitxor_assign(self: &mut Self, other: &u128)

impl BitXorAssign for Wrapping<u128>

fn bitxor_assign(self: &mut Self, other: Wrapping<u128>)

impl BitXorAssign for Wrapping<u128>

fn bitxor_assign(self: &mut Self, other: &Wrapping<u128>)

impl BitXorAssign for Wrapping<u16>

fn bitxor_assign(self: &mut Self, other: u16)

impl BitXorAssign for Wrapping<u16>

fn bitxor_assign(self: &mut Self, other: &u16)

impl BitXorAssign for Wrapping<u16>

fn bitxor_assign(self: &mut Self, other: Wrapping<u16>)

impl BitXorAssign for Wrapping<u16>

fn bitxor_assign(self: &mut Self, other: &Wrapping<u16>)

impl BitXorAssign for Wrapping<u32>

fn bitxor_assign(self: &mut Self, other: u32)

impl BitXorAssign for Wrapping<u32>

fn bitxor_assign(self: &mut Self, other: &u32)

impl BitXorAssign for Wrapping<u32>

fn bitxor_assign(self: &mut Self, other: Wrapping<u32>)

impl BitXorAssign for Wrapping<u32>

fn bitxor_assign(self: &mut Self, other: &Wrapping<u32>)

impl BitXorAssign for Wrapping<u64>

fn bitxor_assign(self: &mut Self, other: u64)

impl BitXorAssign for Wrapping<u64>

fn bitxor_assign(self: &mut Self, other: &u64)

impl BitXorAssign for Wrapping<u64>

fn bitxor_assign(self: &mut Self, other: Wrapping<u64>)

impl BitXorAssign for Wrapping<u64>

fn bitxor_assign(self: &mut Self, other: &Wrapping<u64>)

impl BitXorAssign for Wrapping<u8>

fn bitxor_assign(self: &mut Self, other: u8)

impl BitXorAssign for Wrapping<u8>

fn bitxor_assign(self: &mut Self, other: &u8)

impl BitXorAssign for Wrapping<u8>

fn bitxor_assign(self: &mut Self, other: Wrapping<u8>)

impl BitXorAssign for Wrapping<u8>

fn bitxor_assign(self: &mut Self, other: &Wrapping<u8>)

impl BitXorAssign for Wrapping<usize>

fn bitxor_assign(self: &mut Self, other: usize)

impl BitXorAssign for Wrapping<usize>

fn bitxor_assign(self: &mut Self, other: &usize)

impl BitXorAssign for Wrapping<usize>

fn bitxor_assign(self: &mut Self, other: Wrapping<usize>)

impl BitXorAssign for Wrapping<usize>

fn bitxor_assign(self: &mut Self, other: &Wrapping<usize>)

impl Div for Wrapping<i128>

fn div(self: Self, other: Wrapping<i128>) -> Wrapping<i128>

impl Div for Wrapping<i128>

fn div(self: Self, other: &Wrapping<i128>) -> <Wrapping<i128> as Div<Wrapping<i128>>>::Output

impl Div for Wrapping<i16>

fn div(self: Self, other: Wrapping<i16>) -> Wrapping<i16>

impl Div for Wrapping<i16>

fn div(self: Self, other: &Wrapping<i16>) -> <Wrapping<i16> as Div<Wrapping<i16>>>::Output

impl Div for Wrapping<i32>

fn div(self: Self, other: Wrapping<i32>) -> Wrapping<i32>

impl Div for Wrapping<i32>

fn div(self: Self, other: &Wrapping<i32>) -> <Wrapping<i32> as Div<Wrapping<i32>>>::Output

impl Div for Wrapping<i64>

fn div(self: Self, other: Wrapping<i64>) -> Wrapping<i64>

impl Div for Wrapping<i64>

fn div(self: Self, other: &Wrapping<i64>) -> <Wrapping<i64> as Div<Wrapping<i64>>>::Output

impl Div for Wrapping<i8>

fn div(self: Self, other: Wrapping<i8>) -> Wrapping<i8>

impl Div for Wrapping<i8>

fn div(self: Self, other: &Wrapping<i8>) -> <Wrapping<i8> as Div<Wrapping<i8>>>::Output

impl Div for Wrapping<isize>

fn div(self: Self, other: Wrapping<isize>) -> Wrapping<isize>

impl Div for Wrapping<isize>

fn div(self: Self, other: &Wrapping<isize>) -> <Wrapping<isize> as Div<Wrapping<isize>>>::Output

impl Div for Wrapping<u128>

fn div(self: Self, other: Wrapping<u128>) -> Wrapping<u128>

impl Div for Wrapping<u128>

fn div(self: Self, other: &Wrapping<u128>) -> <Wrapping<u128> as Div<Wrapping<u128>>>::Output

impl Div for Wrapping<u16>

fn div(self: Self, other: Wrapping<u16>) -> Wrapping<u16>

impl Div for Wrapping<u16>

fn div(self: Self, other: &Wrapping<u16>) -> <Wrapping<u16> as Div<Wrapping<u16>>>::Output

impl Div for Wrapping<u32>

fn div(self: Self, other: Wrapping<u32>) -> Wrapping<u32>

impl Div for Wrapping<u32>

fn div(self: Self, other: &Wrapping<u32>) -> <Wrapping<u32> as Div<Wrapping<u32>>>::Output

impl Div for Wrapping<u64>

fn div(self: Self, other: Wrapping<u64>) -> Wrapping<u64>

impl Div for Wrapping<u64>

fn div(self: Self, other: &Wrapping<u64>) -> <Wrapping<u64> as Div<Wrapping<u64>>>::Output

impl Div for Wrapping<u8>

fn div(self: Self, other: Wrapping<u8>) -> Wrapping<u8>

impl Div for Wrapping<u8>

fn div(self: Self, other: &Wrapping<u8>) -> <Wrapping<u8> as Div<Wrapping<u8>>>::Output

impl Div for Wrapping<usize>

fn div(self: Self, other: Wrapping<usize>) -> Wrapping<usize>

impl Div for Wrapping<usize>

fn div(self: Self, other: &Wrapping<usize>) -> <Wrapping<usize> as Div<Wrapping<usize>>>::Output

impl DivAssign for Wrapping<i128>

fn div_assign(self: &mut Self, other: Wrapping<i128>)

impl DivAssign for Wrapping<i128>

fn div_assign(self: &mut Self, other: &Wrapping<i128>)

impl DivAssign for Wrapping<i128>

fn div_assign(self: &mut Self, other: i128)

impl DivAssign for Wrapping<i128>

fn div_assign(self: &mut Self, other: &i128)

impl DivAssign for Wrapping<i16>

fn div_assign(self: &mut Self, other: Wrapping<i16>)

impl DivAssign for Wrapping<i16>

fn div_assign(self: &mut Self, other: &Wrapping<i16>)

impl DivAssign for Wrapping<i16>

fn div_assign(self: &mut Self, other: i16)

impl DivAssign for Wrapping<i16>

fn div_assign(self: &mut Self, other: &i16)

impl DivAssign for Wrapping<i32>

fn div_assign(self: &mut Self, other: Wrapping<i32>)

impl DivAssign for Wrapping<i32>

fn div_assign(self: &mut Self, other: &Wrapping<i32>)

impl DivAssign for Wrapping<i32>

fn div_assign(self: &mut Self, other: i32)

impl DivAssign for Wrapping<i32>

fn div_assign(self: &mut Self, other: &i32)

impl DivAssign for Wrapping<i64>

fn div_assign(self: &mut Self, other: Wrapping<i64>)

impl DivAssign for Wrapping<i64>

fn div_assign(self: &mut Self, other: &Wrapping<i64>)

impl DivAssign for Wrapping<i64>

fn div_assign(self: &mut Self, other: i64)

impl DivAssign for Wrapping<i64>

fn div_assign(self: &mut Self, other: &i64)

impl DivAssign for Wrapping<i8>

fn div_assign(self: &mut Self, other: Wrapping<i8>)

impl DivAssign for Wrapping<i8>

fn div_assign(self: &mut Self, other: &Wrapping<i8>)

impl DivAssign for Wrapping<i8>

fn div_assign(self: &mut Self, other: i8)

impl DivAssign for Wrapping<i8>

fn div_assign(self: &mut Self, other: &i8)

impl DivAssign for Wrapping<isize>

fn div_assign(self: &mut Self, other: Wrapping<isize>)

impl DivAssign for Wrapping<isize>

fn div_assign(self: &mut Self, other: &Wrapping<isize>)

impl DivAssign for Wrapping<isize>

fn div_assign(self: &mut Self, other: isize)

impl DivAssign for Wrapping<isize>

fn div_assign(self: &mut Self, other: &isize)

impl DivAssign for Wrapping<u128>

fn div_assign(self: &mut Self, other: Wrapping<u128>)

impl DivAssign for Wrapping<u128>

fn div_assign(self: &mut Self, other: &Wrapping<u128>)

impl DivAssign for Wrapping<u128>

fn div_assign(self: &mut Self, other: u128)

impl DivAssign for Wrapping<u128>

fn div_assign(self: &mut Self, other: &u128)

impl DivAssign for Wrapping<u16>

fn div_assign(self: &mut Self, other: Wrapping<u16>)

impl DivAssign for Wrapping<u16>

fn div_assign(self: &mut Self, other: &Wrapping<u16>)

impl DivAssign for Wrapping<u16>

fn div_assign(self: &mut Self, other: u16)

impl DivAssign for Wrapping<u16>

fn div_assign(self: &mut Self, other: &u16)

impl DivAssign for Wrapping<u32>

fn div_assign(self: &mut Self, other: Wrapping<u32>)

impl DivAssign for Wrapping<u32>

fn div_assign(self: &mut Self, other: &Wrapping<u32>)

impl DivAssign for Wrapping<u32>

fn div_assign(self: &mut Self, other: u32)

impl DivAssign for Wrapping<u32>

fn div_assign(self: &mut Self, other: &u32)

impl DivAssign for Wrapping<u64>

fn div_assign(self: &mut Self, other: Wrapping<u64>)

impl DivAssign for Wrapping<u64>

fn div_assign(self: &mut Self, other: &Wrapping<u64>)

impl DivAssign for Wrapping<u64>

fn div_assign(self: &mut Self, other: u64)

impl DivAssign for Wrapping<u64>

fn div_assign(self: &mut Self, other: &u64)

impl DivAssign for Wrapping<u8>

fn div_assign(self: &mut Self, other: Wrapping<u8>)

impl DivAssign for Wrapping<u8>

fn div_assign(self: &mut Self, other: &Wrapping<u8>)

impl DivAssign for Wrapping<u8>

fn div_assign(self: &mut Self, other: u8)

impl DivAssign for Wrapping<u8>

fn div_assign(self: &mut Self, other: &u8)

impl DivAssign for Wrapping<usize>

fn div_assign(self: &mut Self, other: Wrapping<usize>)

impl DivAssign for Wrapping<usize>

fn div_assign(self: &mut Self, other: &Wrapping<usize>)

impl DivAssign for Wrapping<usize>

fn div_assign(self: &mut Self, other: usize)

impl DivAssign for Wrapping<usize>

fn div_assign(self: &mut Self, other: &usize)

impl Mul for Wrapping<i128>

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

impl Mul for Wrapping<i128>

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

impl Mul for Wrapping<i16>

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

impl Mul for Wrapping<i16>

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

impl Mul for Wrapping<i32>

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

impl Mul for Wrapping<i32>

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

impl Mul for Wrapping<i64>

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

impl Mul for Wrapping<i64>

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

impl Mul for Wrapping<i8>

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

impl Mul for Wrapping<i8>

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

impl Mul for Wrapping<isize>

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

impl Mul for Wrapping<isize>

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

impl Mul for Wrapping<u128>

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

impl Mul for Wrapping<u128>

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

impl Mul for Wrapping<u16>

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

impl Mul for Wrapping<u16>

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

impl Mul for Wrapping<u32>

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

impl Mul for Wrapping<u32>

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

impl Mul for Wrapping<u64>

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

impl Mul for Wrapping<u64>

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

impl Mul for Wrapping<u8>

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

impl Mul for Wrapping<u8>

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

impl Mul for Wrapping<usize>

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

impl Mul for Wrapping<usize>

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

impl MulAssign for Wrapping<i128>

fn mul_assign(self: &mut Self, other: &i128)

impl MulAssign for Wrapping<i128>

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

impl MulAssign for Wrapping<i128>

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

impl MulAssign for Wrapping<i128>

fn mul_assign(self: &mut Self, other: i128)

impl MulAssign for Wrapping<i16>

fn mul_assign(self: &mut Self, other: i16)

impl MulAssign for Wrapping<i16>

fn mul_assign(self: &mut Self, other: &i16)

impl MulAssign for Wrapping<i16>

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

impl MulAssign for Wrapping<i16>

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

impl MulAssign for Wrapping<i32>

fn mul_assign(self: &mut Self, other: i32)

impl MulAssign for Wrapping<i32>

fn mul_assign(self: &mut Self, other: &i32)

impl MulAssign for Wrapping<i32>

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

impl MulAssign for Wrapping<i32>

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

impl MulAssign for Wrapping<i64>

fn mul_assign(self: &mut Self, other: i64)

impl MulAssign for Wrapping<i64>

fn mul_assign(self: &mut Self, other: &i64)

impl MulAssign for Wrapping<i64>

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

impl MulAssign for Wrapping<i64>

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

impl MulAssign for Wrapping<i8>

fn mul_assign(self: &mut Self, other: i8)

impl MulAssign for Wrapping<i8>

fn mul_assign(self: &mut Self, other: &i8)

impl MulAssign for Wrapping<i8>

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

impl MulAssign for Wrapping<i8>

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

impl MulAssign for Wrapping<isize>

fn mul_assign(self: &mut Self, other: isize)

impl MulAssign for Wrapping<isize>

fn mul_assign(self: &mut Self, other: &isize)

impl MulAssign for Wrapping<isize>

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

impl MulAssign for Wrapping<isize>

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

impl MulAssign for Wrapping<u128>

fn mul_assign(self: &mut Self, other: u128)

impl MulAssign for Wrapping<u128>

fn mul_assign(self: &mut Self, other: &u128)

impl MulAssign for Wrapping<u128>

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

impl MulAssign for Wrapping<u128>

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

impl MulAssign for Wrapping<u16>

fn mul_assign(self: &mut Self, other: u16)

impl MulAssign for Wrapping<u16>

fn mul_assign(self: &mut Self, other: &u16)

impl MulAssign for Wrapping<u16>

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

impl MulAssign for Wrapping<u16>

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

impl MulAssign for Wrapping<u32>

fn mul_assign(self: &mut Self, other: u32)

impl MulAssign for Wrapping<u32>

fn mul_assign(self: &mut Self, other: &u32)

impl MulAssign for Wrapping<u32>

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

impl MulAssign for Wrapping<u32>

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

impl MulAssign for Wrapping<u64>

fn mul_assign(self: &mut Self, other: u64)

impl MulAssign for Wrapping<u64>

fn mul_assign(self: &mut Self, other: &u64)

impl MulAssign for Wrapping<u64>

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

impl MulAssign for Wrapping<u64>

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

impl MulAssign for Wrapping<u8>

fn mul_assign(self: &mut Self, other: u8)

impl MulAssign for Wrapping<u8>

fn mul_assign(self: &mut Self, other: &u8)

impl MulAssign for Wrapping<u8>

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

impl MulAssign for Wrapping<u8>

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

impl MulAssign for Wrapping<usize>

fn mul_assign(self: &mut Self, other: usize)

impl MulAssign for Wrapping<usize>

fn mul_assign(self: &mut Self, other: &usize)

impl MulAssign for Wrapping<usize>

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

impl MulAssign for Wrapping<usize>

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

impl Neg for Wrapping<i128>

fn neg(self: Self) -> Self

impl Neg for Wrapping<i16>

fn neg(self: Self) -> Self

impl Neg for Wrapping<i32>

fn neg(self: Self) -> Self

impl Neg for Wrapping<i64>

fn neg(self: Self) -> Self

impl Neg for Wrapping<i8>

fn neg(self: Self) -> Self

impl Neg for Wrapping<isize>

fn neg(self: Self) -> Self

impl Neg for Wrapping<u128>

fn neg(self: Self) -> Self

impl Neg for Wrapping<u16>

fn neg(self: Self) -> Self

impl Neg for Wrapping<u32>

fn neg(self: Self) -> Self

impl Neg for Wrapping<u64>

fn neg(self: Self) -> Self

impl Neg for Wrapping<u8>

fn neg(self: Self) -> Self

impl Neg for Wrapping<usize>

fn neg(self: Self) -> Self

impl Not for Wrapping<i128>

fn not(self: Self) -> Wrapping<i128>

impl Not for Wrapping<i16>

fn not(self: Self) -> Wrapping<i16>

impl Not for Wrapping<i32>

fn not(self: Self) -> Wrapping<i32>

impl Not for Wrapping<i64>

fn not(self: Self) -> Wrapping<i64>

impl Not for Wrapping<i8>

fn not(self: Self) -> Wrapping<i8>

impl Not for Wrapping<isize>

fn not(self: Self) -> Wrapping<isize>

impl Not for Wrapping<u128>

fn not(self: Self) -> Wrapping<u128>

impl Not for Wrapping<u16>

fn not(self: Self) -> Wrapping<u16>

impl Not for Wrapping<u32>

fn not(self: Self) -> Wrapping<u32>

impl Not for Wrapping<u64>

fn not(self: Self) -> Wrapping<u64>

impl Not for Wrapping<u8>

fn not(self: Self) -> Wrapping<u8>

impl Not for Wrapping<usize>

fn not(self: Self) -> Wrapping<usize>

impl Product for Wrapping<i128>

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

impl Product for Wrapping<i16>

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

impl Product for Wrapping<i32>

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

impl Product for Wrapping<i64>

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

impl Product for Wrapping<i8>

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

impl Product for Wrapping<isize>

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

impl Product for Wrapping<u128>

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

impl Product for Wrapping<u16>

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

impl Product for Wrapping<u32>

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

impl Product for Wrapping<u64>

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

impl Product for Wrapping<u8>

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

impl Product for Wrapping<usize>

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

impl Rem for Wrapping<i128>

fn rem(self: Self, other: &Wrapping<i128>) -> <Wrapping<i128> as Rem<Wrapping<i128>>>::Output

impl Rem for Wrapping<i128>

fn rem(self: Self, other: Wrapping<i128>) -> Wrapping<i128>

impl Rem for Wrapping<i16>

fn rem(self: Self, other: &Wrapping<i16>) -> <Wrapping<i16> as Rem<Wrapping<i16>>>::Output

impl Rem for Wrapping<i16>

fn rem(self: Self, other: Wrapping<i16>) -> Wrapping<i16>

impl Rem for Wrapping<i32>

fn rem(self: Self, other: &Wrapping<i32>) -> <Wrapping<i32> as Rem<Wrapping<i32>>>::Output

impl Rem for Wrapping<i32>

fn rem(self: Self, other: Wrapping<i32>) -> Wrapping<i32>

impl Rem for Wrapping<i64>

fn rem(self: Self, other: &Wrapping<i64>) -> <Wrapping<i64> as Rem<Wrapping<i64>>>::Output

impl Rem for Wrapping<i64>

fn rem(self: Self, other: Wrapping<i64>) -> Wrapping<i64>

impl Rem for Wrapping<i8>

fn rem(self: Self, other: &Wrapping<i8>) -> <Wrapping<i8> as Rem<Wrapping<i8>>>::Output

impl Rem for Wrapping<i8>

fn rem(self: Self, other: Wrapping<i8>) -> Wrapping<i8>

impl Rem for Wrapping<isize>

fn rem(self: Self, other: &Wrapping<isize>) -> <Wrapping<isize> as Rem<Wrapping<isize>>>::Output

impl Rem for Wrapping<isize>

fn rem(self: Self, other: Wrapping<isize>) -> Wrapping<isize>

impl Rem for Wrapping<u128>

fn rem(self: Self, other: &Wrapping<u128>) -> <Wrapping<u128> as Rem<Wrapping<u128>>>::Output

impl Rem for Wrapping<u128>

fn rem(self: Self, other: Wrapping<u128>) -> Wrapping<u128>

impl Rem for Wrapping<u16>

fn rem(self: Self, other: &Wrapping<u16>) -> <Wrapping<u16> as Rem<Wrapping<u16>>>::Output

impl Rem for Wrapping<u16>

fn rem(self: Self, other: Wrapping<u16>) -> Wrapping<u16>

impl Rem for Wrapping<u32>

fn rem(self: Self, other: &Wrapping<u32>) -> <Wrapping<u32> as Rem<Wrapping<u32>>>::Output

impl Rem for Wrapping<u32>

fn rem(self: Self, other: Wrapping<u32>) -> Wrapping<u32>

impl Rem for Wrapping<u64>

fn rem(self: Self, other: &Wrapping<u64>) -> <Wrapping<u64> as Rem<Wrapping<u64>>>::Output

impl Rem for Wrapping<u64>

fn rem(self: Self, other: Wrapping<u64>) -> Wrapping<u64>

impl Rem for Wrapping<u8>

fn rem(self: Self, other: &Wrapping<u8>) -> <Wrapping<u8> as Rem<Wrapping<u8>>>::Output

impl Rem for Wrapping<u8>

fn rem(self: Self, other: Wrapping<u8>) -> Wrapping<u8>

impl Rem for Wrapping<usize>

fn rem(self: Self, other: &Wrapping<usize>) -> <Wrapping<usize> as Rem<Wrapping<usize>>>::Output

impl Rem for Wrapping<usize>

fn rem(self: Self, other: Wrapping<usize>) -> Wrapping<usize>

impl RemAssign for Wrapping<i128>

fn rem_assign(self: &mut Self, other: i128)

impl RemAssign for Wrapping<i128>

fn rem_assign(self: &mut Self, other: &i128)

impl RemAssign for Wrapping<i128>

fn rem_assign(self: &mut Self, other: Wrapping<i128>)

impl RemAssign for Wrapping<i128>

fn rem_assign(self: &mut Self, other: &Wrapping<i128>)

impl RemAssign for Wrapping<i16>

fn rem_assign(self: &mut Self, other: i16)

impl RemAssign for Wrapping<i16>

fn rem_assign(self: &mut Self, other: &i16)

impl RemAssign for Wrapping<i16>

fn rem_assign(self: &mut Self, other: Wrapping<i16>)

impl RemAssign for Wrapping<i16>

fn rem_assign(self: &mut Self, other: &Wrapping<i16>)

impl RemAssign for Wrapping<i32>

fn rem_assign(self: &mut Self, other: i32)

impl RemAssign for Wrapping<i32>

fn rem_assign(self: &mut Self, other: &i32)

impl RemAssign for Wrapping<i32>

fn rem_assign(self: &mut Self, other: Wrapping<i32>)

impl RemAssign for Wrapping<i32>

fn rem_assign(self: &mut Self, other: &Wrapping<i32>)

impl RemAssign for Wrapping<i64>

fn rem_assign(self: &mut Self, other: i64)

impl RemAssign for Wrapping<i64>

fn rem_assign(self: &mut Self, other: &i64)

impl RemAssign for Wrapping<i64>

fn rem_assign(self: &mut Self, other: Wrapping<i64>)

impl RemAssign for Wrapping<i64>

fn rem_assign(self: &mut Self, other: &Wrapping<i64>)

impl RemAssign for Wrapping<i8>

fn rem_assign(self: &mut Self, other: i8)

impl RemAssign for Wrapping<i8>

fn rem_assign(self: &mut Self, other: &i8)

impl RemAssign for Wrapping<i8>

fn rem_assign(self: &mut Self, other: Wrapping<i8>)

impl RemAssign for Wrapping<i8>

fn rem_assign(self: &mut Self, other: &Wrapping<i8>)

impl RemAssign for Wrapping<isize>

fn rem_assign(self: &mut Self, other: isize)

impl RemAssign for Wrapping<isize>

fn rem_assign(self: &mut Self, other: &isize)

impl RemAssign for Wrapping<isize>

fn rem_assign(self: &mut Self, other: Wrapping<isize>)

impl RemAssign for Wrapping<isize>

fn rem_assign(self: &mut Self, other: &Wrapping<isize>)

impl RemAssign for Wrapping<u128>

fn rem_assign(self: &mut Self, other: u128)

impl RemAssign for Wrapping<u128>

fn rem_assign(self: &mut Self, other: &u128)

impl RemAssign for Wrapping<u128>

fn rem_assign(self: &mut Self, other: Wrapping<u128>)

impl RemAssign for Wrapping<u128>

fn rem_assign(self: &mut Self, other: &Wrapping<u128>)

impl RemAssign for Wrapping<u16>

fn rem_assign(self: &mut Self, other: u16)

impl RemAssign for Wrapping<u16>

fn rem_assign(self: &mut Self, other: &u16)

impl RemAssign for Wrapping<u16>

fn rem_assign(self: &mut Self, other: Wrapping<u16>)

impl RemAssign for Wrapping<u16>

fn rem_assign(self: &mut Self, other: &Wrapping<u16>)

impl RemAssign for Wrapping<u32>

fn rem_assign(self: &mut Self, other: u32)

impl RemAssign for Wrapping<u32>

fn rem_assign(self: &mut Self, other: &u32)

impl RemAssign for Wrapping<u32>

fn rem_assign(self: &mut Self, other: Wrapping<u32>)

impl RemAssign for Wrapping<u32>

fn rem_assign(self: &mut Self, other: &Wrapping<u32>)

impl RemAssign for Wrapping<u64>

fn rem_assign(self: &mut Self, other: u64)

impl RemAssign for Wrapping<u64>

fn rem_assign(self: &mut Self, other: &u64)

impl RemAssign for Wrapping<u64>

fn rem_assign(self: &mut Self, other: Wrapping<u64>)

impl RemAssign for Wrapping<u64>

fn rem_assign(self: &mut Self, other: &Wrapping<u64>)

impl RemAssign for Wrapping<u8>

fn rem_assign(self: &mut Self, other: u8)

impl RemAssign for Wrapping<u8>

fn rem_assign(self: &mut Self, other: &u8)

impl RemAssign for Wrapping<u8>

fn rem_assign(self: &mut Self, other: Wrapping<u8>)

impl RemAssign for Wrapping<u8>

fn rem_assign(self: &mut Self, other: &Wrapping<u8>)

impl RemAssign for Wrapping<usize>

fn rem_assign(self: &mut Self, other: usize)

impl RemAssign for Wrapping<usize>

fn rem_assign(self: &mut Self, other: &usize)

impl RemAssign for Wrapping<usize>

fn rem_assign(self: &mut Self, other: Wrapping<usize>)

impl RemAssign for Wrapping<usize>

fn rem_assign(self: &mut Self, other: &Wrapping<usize>)

impl Shl for Wrapping<i128>

fn shl(self: Self, other: usize) -> Wrapping<i128>

impl Shl for Wrapping<i128>

fn shl(self: Self, other: &usize) -> <Wrapping<i128> as Shl<usize>>::Output

impl Shl for Wrapping<i16>

fn shl(self: Self, other: &usize) -> <Wrapping<i16> as Shl<usize>>::Output

impl Shl for Wrapping<i16>

fn shl(self: Self, other: usize) -> Wrapping<i16>

impl Shl for Wrapping<i32>

fn shl(self: Self, other: usize) -> Wrapping<i32>

impl Shl for Wrapping<i32>

fn shl(self: Self, other: &usize) -> <Wrapping<i32> as Shl<usize>>::Output

impl Shl for Wrapping<i64>

fn shl(self: Self, other: &usize) -> <Wrapping<i64> as Shl<usize>>::Output

impl Shl for Wrapping<i64>

fn shl(self: Self, other: usize) -> Wrapping<i64>

impl Shl for Wrapping<i8>

fn shl(self: Self, other: usize) -> Wrapping<i8>

impl Shl for Wrapping<i8>

fn shl(self: Self, other: &usize) -> <Wrapping<i8> as Shl<usize>>::Output

impl Shl for Wrapping<isize>

fn shl(self: Self, other: usize) -> Wrapping<isize>

impl Shl for Wrapping<isize>

fn shl(self: Self, other: &usize) -> <Wrapping<isize> as Shl<usize>>::Output

impl Shl for Wrapping<u128>

fn shl(self: Self, other: &usize) -> <Wrapping<u128> as Shl<usize>>::Output

impl Shl for Wrapping<u128>

fn shl(self: Self, other: usize) -> Wrapping<u128>

impl Shl for Wrapping<u16>

fn shl(self: Self, other: usize) -> Wrapping<u16>

impl Shl for Wrapping<u16>

fn shl(self: Self, other: &usize) -> <Wrapping<u16> as Shl<usize>>::Output

impl Shl for Wrapping<u32>

fn shl(self: Self, other: &usize) -> <Wrapping<u32> as Shl<usize>>::Output

impl Shl for Wrapping<u32>

fn shl(self: Self, other: usize) -> Wrapping<u32>

impl Shl for Wrapping<u64>

fn shl(self: Self, other: usize) -> Wrapping<u64>

impl Shl for Wrapping<u64>

fn shl(self: Self, other: &usize) -> <Wrapping<u64> as Shl<usize>>::Output

impl Shl for Wrapping<u8>

fn shl(self: Self, other: &usize) -> <Wrapping<u8> as Shl<usize>>::Output

impl Shl for Wrapping<u8>

fn shl(self: Self, other: usize) -> Wrapping<u8>

impl Shl for Wrapping<usize>

fn shl(self: Self, other: &usize) -> <Wrapping<usize> as Shl<usize>>::Output

impl Shl for Wrapping<usize>

fn shl(self: Self, other: usize) -> Wrapping<usize>

impl ShlAssign for Wrapping<i128>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<i128>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<i16>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<i16>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<i32>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<i32>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<i64>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<i64>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<i8>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<i8>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<isize>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<isize>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<u128>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<u128>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<u16>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<u16>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<u32>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<u32>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<u64>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<u64>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<u8>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<u8>

fn shl_assign(self: &mut Self, other: &usize)

impl ShlAssign for Wrapping<usize>

fn shl_assign(self: &mut Self, other: usize)

impl ShlAssign for Wrapping<usize>

fn shl_assign(self: &mut Self, other: &usize)

impl Shr for Wrapping<i128>

fn shr(self: Self, other: usize) -> Wrapping<i128>

impl Shr for Wrapping<i128>

fn shr(self: Self, other: &usize) -> <Wrapping<i128> as Shr<usize>>::Output

impl Shr for Wrapping<i16>

fn shr(self: Self, other: usize) -> Wrapping<i16>

impl Shr for Wrapping<i16>

fn shr(self: Self, other: &usize) -> <Wrapping<i16> as Shr<usize>>::Output

impl Shr for Wrapping<i32>

fn shr(self: Self, other: usize) -> Wrapping<i32>

impl Shr for Wrapping<i32>

fn shr(self: Self, other: &usize) -> <Wrapping<i32> as Shr<usize>>::Output

impl Shr for Wrapping<i64>

fn shr(self: Self, other: &usize) -> <Wrapping<i64> as Shr<usize>>::Output

impl Shr for Wrapping<i64>

fn shr(self: Self, other: usize) -> Wrapping<i64>

impl Shr for Wrapping<i8>

fn shr(self: Self, other: &usize) -> <Wrapping<i8> as Shr<usize>>::Output

impl Shr for Wrapping<i8>

fn shr(self: Self, other: usize) -> Wrapping<i8>

impl Shr for Wrapping<isize>

fn shr(self: Self, other: &usize) -> <Wrapping<isize> as Shr<usize>>::Output

impl Shr for Wrapping<isize>

fn shr(self: Self, other: usize) -> Wrapping<isize>

impl Shr for Wrapping<u128>

fn shr(self: Self, other: &usize) -> <Wrapping<u128> as Shr<usize>>::Output

impl Shr for Wrapping<u128>

fn shr(self: Self, other: usize) -> Wrapping<u128>

impl Shr for Wrapping<u16>

fn shr(self: Self, other: usize) -> Wrapping<u16>

impl Shr for Wrapping<u16>

fn shr(self: Self, other: &usize) -> <Wrapping<u16> as Shr<usize>>::Output

impl Shr for Wrapping<u32>

fn shr(self: Self, other: &usize) -> <Wrapping<u32> as Shr<usize>>::Output

impl Shr for Wrapping<u32>

fn shr(self: Self, other: usize) -> Wrapping<u32>

impl Shr for Wrapping<u64>

fn shr(self: Self, other: usize) -> Wrapping<u64>

impl Shr for Wrapping<u64>

fn shr(self: Self, other: &usize) -> <Wrapping<u64> as Shr<usize>>::Output

impl Shr for Wrapping<u8>

fn shr(self: Self, other: &usize) -> <Wrapping<u8> as Shr<usize>>::Output

impl Shr for Wrapping<u8>

fn shr(self: Self, other: usize) -> Wrapping<u8>

impl Shr for Wrapping<usize>

fn shr(self: Self, other: usize) -> Wrapping<usize>

impl Shr for Wrapping<usize>

fn shr(self: Self, other: &usize) -> <Wrapping<usize> as Shr<usize>>::Output

impl ShrAssign for Wrapping<i128>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<i128>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<i16>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<i16>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<i32>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<i32>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<i64>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<i64>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<i8>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<i8>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<isize>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<isize>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u128>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<u128>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u16>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<u16>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u32>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<u32>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u64>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<u64>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u8>

fn shr_assign(self: &mut Self, other: &usize)

impl ShrAssign for Wrapping<u8>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<usize>

fn shr_assign(self: &mut Self, other: usize)

impl ShrAssign for Wrapping<usize>

fn shr_assign(self: &mut Self, other: &usize)

impl Sub for Wrapping<i128>

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

impl Sub for Wrapping<i128>

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

impl Sub for Wrapping<i16>

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

impl Sub for Wrapping<i16>

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

impl Sub for Wrapping<i32>

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

impl Sub for Wrapping<i32>

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

impl Sub for Wrapping<i64>

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

impl Sub for Wrapping<i64>

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

impl Sub for Wrapping<i8>

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

impl Sub for Wrapping<i8>

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

impl Sub for Wrapping<isize>

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

impl Sub for Wrapping<isize>

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

impl Sub for Wrapping<u128>

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

impl Sub for Wrapping<u128>

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

impl Sub for Wrapping<u16>

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

impl Sub for Wrapping<u16>

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

impl Sub for Wrapping<u32>

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

impl Sub for Wrapping<u32>

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

impl Sub for Wrapping<u64>

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

impl Sub for Wrapping<u64>

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

impl Sub for Wrapping<u8>

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

impl Sub for Wrapping<u8>

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

impl Sub for Wrapping<usize>

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

impl Sub for Wrapping<usize>

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

impl SubAssign for Wrapping<i128>

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

impl SubAssign for Wrapping<i128>

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

impl SubAssign for Wrapping<i128>

fn sub_assign(self: &mut Self, other: i128)

impl SubAssign for Wrapping<i128>

fn sub_assign(self: &mut Self, other: &i128)

impl SubAssign for Wrapping<i16>

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

impl SubAssign for Wrapping<i16>

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

impl SubAssign for Wrapping<i16>

fn sub_assign(self: &mut Self, other: i16)

impl SubAssign for Wrapping<i16>

fn sub_assign(self: &mut Self, other: &i16)

impl SubAssign for Wrapping<i32>

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

impl SubAssign for Wrapping<i32>

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

impl SubAssign for Wrapping<i32>

fn sub_assign(self: &mut Self, other: i32)

impl SubAssign for Wrapping<i32>

fn sub_assign(self: &mut Self, other: &i32)

impl SubAssign for Wrapping<i64>

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

impl SubAssign for Wrapping<i64>

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

impl SubAssign for Wrapping<i64>

fn sub_assign(self: &mut Self, other: i64)

impl SubAssign for Wrapping<i64>

fn sub_assign(self: &mut Self, other: &i64)

impl SubAssign for Wrapping<i8>

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

impl SubAssign for Wrapping<i8>

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

impl SubAssign for Wrapping<i8>

fn sub_assign(self: &mut Self, other: i8)

impl SubAssign for Wrapping<i8>

fn sub_assign(self: &mut Self, other: &i8)

impl SubAssign for Wrapping<isize>

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

impl SubAssign for Wrapping<isize>

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

impl SubAssign for Wrapping<isize>

fn sub_assign(self: &mut Self, other: isize)

impl SubAssign for Wrapping<isize>

fn sub_assign(self: &mut Self, other: &isize)

impl SubAssign for Wrapping<u128>

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

impl SubAssign for Wrapping<u128>

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

impl SubAssign for Wrapping<u128>

fn sub_assign(self: &mut Self, other: u128)

impl SubAssign for Wrapping<u128>

fn sub_assign(self: &mut Self, other: &u128)

impl SubAssign for Wrapping<u16>

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

impl SubAssign for Wrapping<u16>

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

impl SubAssign for Wrapping<u16>

fn sub_assign(self: &mut Self, other: u16)

impl SubAssign for Wrapping<u16>

fn sub_assign(self: &mut Self, other: &u16)

impl SubAssign for Wrapping<u32>

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

impl SubAssign for Wrapping<u32>

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

impl SubAssign for Wrapping<u32>

fn sub_assign(self: &mut Self, other: u32)

impl SubAssign for Wrapping<u32>

fn sub_assign(self: &mut Self, other: &u32)

impl SubAssign for Wrapping<u64>

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

impl SubAssign for Wrapping<u64>

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

impl SubAssign for Wrapping<u64>

fn sub_assign(self: &mut Self, other: u64)

impl SubAssign for Wrapping<u64>

fn sub_assign(self: &mut Self, other: &u64)

impl SubAssign for Wrapping<u8>

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

impl SubAssign for Wrapping<u8>

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

impl SubAssign for Wrapping<u8>

fn sub_assign(self: &mut Self, other: u8)

impl SubAssign for Wrapping<u8>

fn sub_assign(self: &mut Self, other: &u8)

impl SubAssign for Wrapping<usize>

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

impl SubAssign for Wrapping<usize>

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

impl SubAssign for Wrapping<usize>

fn sub_assign(self: &mut Self, other: usize)

impl SubAssign for Wrapping<usize>

fn sub_assign(self: &mut Self, other: &usize)

impl Sum for Wrapping<i128>

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

impl Sum for Wrapping<i16>

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

impl Sum for Wrapping<i32>

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

impl Sum for Wrapping<i64>

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

impl Sum for Wrapping<i8>

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

impl Sum for Wrapping<isize>

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

impl Sum for Wrapping<u128>

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

impl Sum for Wrapping<u16>

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

impl Sum for Wrapping<u32>

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

impl Sum for Wrapping<u64>

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

impl Sum for Wrapping<u8>

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

impl Sum for Wrapping<usize>

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

impl<'a> Product for Wrapping<i128>

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

impl<'a> Product for Wrapping<i16>

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

impl<'a> Product for Wrapping<i32>

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

impl<'a> Product for Wrapping<i64>

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

impl<'a> Product for Wrapping<i8>

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

impl<'a> Product for Wrapping<isize>

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

impl<'a> Product for Wrapping<u128>

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

impl<'a> Product for Wrapping<u16>

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

impl<'a> Product for Wrapping<u32>

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

impl<'a> Product for Wrapping<u64>

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

impl<'a> Product for Wrapping<u8>

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

impl<'a> Product for Wrapping<usize>

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

impl<'a> Sum for Wrapping<i128>

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

impl<'a> Sum for Wrapping<i16>

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

impl<'a> Sum for Wrapping<i32>

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

impl<'a> Sum for Wrapping<i64>

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

impl<'a> Sum for Wrapping<i8>

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

impl<'a> Sum for Wrapping<isize>

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

impl<'a> Sum for Wrapping<u128>

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

impl<'a> Sum for Wrapping<u16>

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

impl<'a> Sum for Wrapping<u32>

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

impl<'a> Sum for Wrapping<u64>

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

impl<'a> Sum for Wrapping<u8>

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

impl<'a> Sum for Wrapping<usize>

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

impl<T> Any for Wrapping<T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Wrapping<T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Wrapping<T>

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

impl<T> CloneToUninit for Wrapping<T>

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

impl<T> Freeze for Wrapping<T>

impl<T> From for Wrapping<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> RefUnwindSafe for Wrapping<T>

impl<T> Send for Wrapping<T>

impl<T> StructuralPartialEq for Wrapping<T>

impl<T> Sync for Wrapping<T>

impl<T> Unpin for Wrapping<T>

impl<T> UnsafeUnpin for Wrapping<T>

impl<T> UnwindSafe for Wrapping<T>

impl<T, U> Into for Wrapping<T>

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for Wrapping<T>

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

impl<T, U> TryInto for Wrapping<T>

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

impl<T: $crate::clone::Clone> Clone for Wrapping<T>

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

impl<T: $crate::cmp::Eq> Eq for Wrapping<T>

impl<T: $crate::cmp::Ord> Ord for Wrapping<T>

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

impl<T: $crate::cmp::PartialEq> PartialEq for Wrapping<T>

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

impl<T: $crate::cmp::PartialOrd> PartialOrd for Wrapping<T>

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

impl<T: $crate::default::Default> Default for Wrapping<T>

fn default() -> Wrapping<T>

impl<T: $crate::hash::Hash> Hash for Wrapping<T>

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

impl<T: $crate::marker::Copy> Copy for Wrapping<T>

impl<T: fmt::Binary> Binary for Wrapping<T>

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

impl<T: fmt::Debug> Debug for Wrapping<T>

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

impl<T: fmt::Display> Display for Wrapping<T>

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

impl<T: fmt::LowerHex> LowerHex for Wrapping<T>

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

impl<T: fmt::Octal> Octal for Wrapping<T>

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

impl<T: fmt::UpperHex> UpperHex for Wrapping<T>

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