rand_isaac::isaac

Type Alias w32

Source
type w32 = Wrapping<u32>;

Aliased Type§

struct w32(pub u32);

Fields§

§0: u32

Implementations

Source§

impl Wrapping<u32>

Source

pub const fn leading_zeros(self) -> u32

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub fn is_power_of_two(self) -> bool

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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());
Source

pub fn next_power_of_two(self) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_next_power_of_two)

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));
Source§

impl Wrapping<u32>

Source

pub const MIN: Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

Returns the smallest value that can be represented by this integer type.

§Examples

Basic usage:

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

assert_eq!(<Wrapping<u32>>::MIN, Wrapping(u32::MIN));
Source

pub const MAX: Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

Returns the largest value that can be represented by this integer type.

§Examples

Basic usage:

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

assert_eq!(<Wrapping<u32>>::MAX, Wrapping(u32::MAX));
Source

pub const BITS: u32 = 32u32

🔬This is a nightly-only experimental API. (wrapping_int_impl)

Returns the size of this integer type in bits.

§Examples

Basic usage:

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

assert_eq!(<Wrapping<u32>>::BITS, u32::BITS);
Source

pub const fn count_ones(self) -> u32

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub const fn count_zeros(self) -> u32

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub const fn trailing_zeros(self) -> u32

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub const fn rotate_left(self, n: u32) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub const fn rotate_right(self, n: u32) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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);
Source

pub const fn swap_bytes(self) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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));
1.37.0 (const: 1.37.0) · Source

pub const fn reverse_bits(self) -> Wrapping<u32>

Reverses the bit pattern of the integer.

§Examples

Please note that this example is shared between integer types. Which explains why i16 is used here.

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));
Source

pub const fn from_be(x: Wrapping<u32>) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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())
}
Source

pub const fn from_le(x: Wrapping<u32>) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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())
}
Source

pub const fn to_be(self) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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())
}
Source

pub const fn to_le(self) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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())
}
Source

pub fn pow(self, exp: u32) -> Wrapping<u32>

🔬This is a nightly-only experimental API. (wrapping_int_impl)

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));

Trait Implementations

1.14.0 · Source§

impl Add<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Add>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
1.0.0 · Source§

impl Add for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
1.22.0 · Source§

impl AddAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the += operation. Read more
1.22.0 · Source§

impl AddAssign<&u32> for Wrapping<u32>

Source§

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

Performs the += operation. Read more
1.60.0 · Source§

impl AddAssign<u32> for Wrapping<u32>

Source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
1.8.0 · Source§

impl AddAssign for Wrapping<u32>

Source§

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

Performs the += operation. Read more
1.11.0 · Source§

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

Source§

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

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

impl BitAnd<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as BitAnd>::Output

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
1.0.0 · Source§

impl BitAnd for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
1.22.0 · Source§

impl BitAndAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the &= operation. Read more
1.22.0 · Source§

impl BitAndAssign<&u32> for Wrapping<u32>

Source§

fn bitand_assign(&mut self, other: &u32)

Performs the &= operation. Read more
1.60.0 · Source§

impl BitAndAssign<u32> for Wrapping<u32>

Source§

fn bitand_assign(&mut self, other: u32)

Performs the &= operation. Read more
1.8.0 · Source§

impl BitAndAssign for Wrapping<u32>

Source§

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

Performs the &= operation. Read more
1.14.0 · Source§

impl BitOr<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as BitOr>::Output

The resulting type after applying the | operator.
Source§

fn bitor(self, other: &Wrapping<u32>) -> <Wrapping<u32> as BitOr>::Output

Performs the | operation. Read more
1.0.0 · Source§

impl BitOr for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
1.22.0 · Source§

impl BitOrAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the |= operation. Read more
1.22.0 · Source§

impl BitOrAssign<&u32> for Wrapping<u32>

Source§

fn bitor_assign(&mut self, other: &u32)

Performs the |= operation. Read more
1.60.0 · Source§

impl BitOrAssign<u32> for Wrapping<u32>

Source§

fn bitor_assign(&mut self, other: u32)

Performs the |= operation. Read more
1.8.0 · Source§

impl BitOrAssign for Wrapping<u32>

Source§

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

Performs the |= operation. Read more
1.14.0 · Source§

impl BitXor<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as BitXor>::Output

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: &Wrapping<u32>) -> <Wrapping<u32> as BitXor>::Output

Performs the ^ operation. Read more
1.0.0 · Source§

impl BitXor for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
1.22.0 · Source§

impl BitXorAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the ^= operation. Read more
1.22.0 · Source§

impl BitXorAssign<&u32> for Wrapping<u32>

Source§

fn bitxor_assign(&mut self, other: &u32)

Performs the ^= operation. Read more
1.60.0 · Source§

impl BitXorAssign<u32> for Wrapping<u32>

Source§

fn bitxor_assign(&mut self, other: u32)

Performs the ^= operation. Read more
1.8.0 · Source§

impl BitXorAssign for Wrapping<u32>

Source§

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

Performs the ^= operation. Read more
1.0.0 · Source§

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

Source§

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

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
1.0.0 · Source§

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

Source§

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

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

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

Source§

fn default() -> Wrapping<T>

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

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

Source§

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

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

impl Div<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Div>::Output

The resulting type after applying the / operator.
Source§

fn div(self, other: &Wrapping<u32>) -> <Wrapping<u32> as Div>::Output

Performs the / operation. Read more
1.3.0 · Source§

impl Div for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
1.22.0 · Source§

impl DivAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the /= operation. Read more
1.22.0 · Source§

impl DivAssign<&u32> for Wrapping<u32>

Source§

fn div_assign(&mut self, other: &u32)

Performs the /= operation. Read more
1.60.0 · Source§

impl DivAssign<u32> for Wrapping<u32>

Source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
1.8.0 · Source§

impl DivAssign for Wrapping<u32>

Source§

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

Performs the /= operation. Read more
1.0.0 · Source§

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

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
1.11.0 · Source§

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

Source§

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

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

impl Mul<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Wrapping<u32>) -> <Wrapping<u32> as Mul>::Output

Performs the * operation. Read more
1.0.0 · Source§

impl Mul for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
1.22.0 · Source§

impl MulAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the *= operation. Read more
1.22.0 · Source§

impl MulAssign<&u32> for Wrapping<u32>

Source§

fn mul_assign(&mut self, other: &u32)

Performs the *= operation. Read more
1.60.0 · Source§

impl MulAssign<u32> for Wrapping<u32>

Source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
1.8.0 · Source§

impl MulAssign for Wrapping<u32>

Source§

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

Performs the *= operation. Read more
1.10.0 · Source§

impl Neg for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Wrapping<u32>

Performs the unary - operation. Read more
1.0.0 · Source§

impl Not for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Wrapping<u32>

Performs the unary ! operation. Read more
1.11.0 · Source§

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

Source§

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

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

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

Source§

fn cmp(&self, other: &Wrapping<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
1.0.0 · Source§

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

Source§

fn eq(&self, other: &Wrapping<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · Source§

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

Source§

fn partial_cmp(&self, other: &Wrapping<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
1.14.0 · Source§

impl<'a> Product<&'a Wrapping<u32>> for Wrapping<u32>

Source§

fn product<I>(iter: I) -> Wrapping<u32>
where I: Iterator<Item = &'a Wrapping<u32>>,

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

impl Product for Wrapping<u32>

Source§

fn product<I>(iter: I) -> Wrapping<u32>
where I: Iterator<Item = Wrapping<u32>>,

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

impl Rem<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Rem>::Output

The resulting type after applying the % operator.
Source§

fn rem(self, other: &Wrapping<u32>) -> <Wrapping<u32> as Rem>::Output

Performs the % operation. Read more
1.7.0 · Source§

impl Rem for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
1.22.0 · Source§

impl RemAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the %= operation. Read more
1.22.0 · Source§

impl RemAssign<&u32> for Wrapping<u32>

Source§

fn rem_assign(&mut self, other: &u32)

Performs the %= operation. Read more
1.60.0 · Source§

impl RemAssign<u32> for Wrapping<u32>

Source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
1.8.0 · Source§

impl RemAssign for Wrapping<u32>

Source§

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

Performs the %= operation. Read more
1.39.0 · Source§

impl Shl<&usize> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Shl<usize>>::Output

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

fn shl(self, other: &usize) -> <Wrapping<u32> as Shl<usize>>::Output

Performs the << operation. Read more
1.0.0 · Source§

impl Shl<usize> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

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

fn shl(self, other: usize) -> Wrapping<u32>

Performs the << operation. Read more
1.22.0 · Source§

impl ShlAssign<&usize> for Wrapping<u32>

Source§

fn shl_assign(&mut self, other: &usize)

Performs the <<= operation. Read more
1.8.0 · Source§

impl ShlAssign<usize> for Wrapping<u32>

Source§

fn shl_assign(&mut self, other: usize)

Performs the <<= operation. Read more
1.39.0 · Source§

impl Shr<&usize> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Shr<usize>>::Output

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

fn shr(self, other: &usize) -> <Wrapping<u32> as Shr<usize>>::Output

Performs the >> operation. Read more
1.0.0 · Source§

impl Shr<usize> for Wrapping<u32>

Source§

type Output = Wrapping<u32>

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

fn shr(self, other: usize) -> Wrapping<u32>

Performs the >> operation. Read more
1.22.0 · Source§

impl ShrAssign<&usize> for Wrapping<u32>

Source§

fn shr_assign(&mut self, other: &usize)

Performs the >>= operation. Read more
1.8.0 · Source§

impl ShrAssign<usize> for Wrapping<u32>

Source§

fn shr_assign(&mut self, other: usize)

Performs the >>= operation. Read more
1.14.0 · Source§

impl Sub<&Wrapping<u32>> for Wrapping<u32>

Source§

type Output = <Wrapping<u32> as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Wrapping<u32>) -> <Wrapping<u32> as Sub>::Output

Performs the - operation. Read more
1.0.0 · Source§

impl Sub for Wrapping<u32>

Source§

type Output = Wrapping<u32>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
1.22.0 · Source§

impl SubAssign<&Wrapping<u32>> for Wrapping<u32>

Source§

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

Performs the -= operation. Read more
1.22.0 · Source§

impl SubAssign<&u32> for Wrapping<u32>

Source§

fn sub_assign(&mut self, other: &u32)

Performs the -= operation. Read more
1.60.0 · Source§

impl SubAssign<u32> for Wrapping<u32>

Source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
1.8.0 · Source§

impl SubAssign for Wrapping<u32>

Source§

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

Performs the -= operation. Read more
1.14.0 · Source§

impl<'a> Sum<&'a Wrapping<u32>> for Wrapping<u32>

Source§

fn sum<I>(iter: I) -> Wrapping<u32>
where I: Iterator<Item = &'a Wrapping<u32>>,

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

impl Sum for Wrapping<u32>

Source§

fn sum<I>(iter: I) -> Wrapping<u32>
where I: Iterator<Item = Wrapping<u32>>,

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

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

Source§

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

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

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

1.0.0 · Source§

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

1.0.0 · Source§

impl<T> StructuralPartialEq for Wrapping<T>