Primitive Type u64
Expand description
The 64-bit unsigned integer type.
Implementations§
Source§impl u64
impl u64
1.43.0 · Sourcepub const MAX: Self = 18_446_744_073_709_551_615u64
pub const MAX: Self = 18_446_744_073_709_551_615u64
The largest value that can be represented by this integer type (264 − 1).
§Examples
1.0.0 (const: 1.32.0) · Sourcepub const fn count_ones(self) -> u32
pub const fn count_ones(self) -> u32
Returns the number of ones in the binary representation of self.
§Examples
1.0.0 (const: 1.32.0) · Sourcepub const fn from_le(x: Self) -> Self
pub 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
1.0.0 (const: 1.32.0) · Sourcepub const fn to_le(self) -> Self
pub const fn to_le(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
1.0.0 (const: 1.47.0) · Sourcepub const fn checked_add(self, rhs: Self) -> Option<Self>
pub const fn checked_add(self, rhs: Self) -> Option<Self>
Checked integer addition. Computes self + rhs, returning None
if overflow occurred.
§Examples
1.79.0 (const: 1.79.0) · Sourcepub const unsafe fn unchecked_add(self, rhs: Self) -> Self
pub const unsafe fn unchecked_add(self, rhs: Self) -> Self
Unchecked integer addition. Computes self + rhs, assuming overflow
cannot occur.
Calling x.unchecked_add(y) is semantically equivalent to calling
x.checked_add(y).unwrap_unchecked().
If you’re just trying to avoid the panic in debug mode, then do not
use this. Instead, you’re looking for wrapping_add.
§Safety
This results in undefined behavior when
self + rhs > u64::MAX or self + rhs < u64::MIN,
i.e. when checked_add would return None.
1.0.0 (const: 1.47.0) · Sourcepub const fn checked_sub(self, rhs: Self) -> Option<Self>
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
Checked integer subtraction. Computes self - rhs, returning
None if overflow occurred.
§Examples
1.79.0 (const: 1.79.0) · Sourcepub const unsafe fn unchecked_sub(self, rhs: Self) -> Self
pub const unsafe fn unchecked_sub(self, rhs: Self) -> Self
Unchecked integer subtraction. Computes self - rhs, assuming overflow
cannot occur.
Calling x.unchecked_sub(y) is semantically equivalent to calling
x.checked_sub(y).unwrap_unchecked().
If you’re just trying to avoid the panic in debug mode, then do not
use this. Instead, you’re looking for wrapping_sub.
If you find yourself writing code like this:
if foo >= bar {
// SAFETY: just checked it will not overflow
let diff = unsafe { foo.unchecked_sub(bar) };
// ... use diff ...
}Consider changing it to
As that does exactly the same thing – including telling the optimizer
that the subtraction cannot overflow – but avoids needing unsafe.
§Safety
This results in undefined behavior when
self - rhs > u64::MAX or self - rhs < u64::MIN,
i.e. when checked_sub would return None.
1.0.0 (const: 1.47.0) · Sourcepub const fn checked_mul(self, rhs: Self) -> Option<Self>
pub const fn checked_mul(self, rhs: Self) -> Option<Self>
Checked integer multiplication. Computes self * rhs, returning
None if overflow occurred.
§Examples
1.0.0 (const: 1.32.0) · Sourcepub const fn wrapping_sub(self, rhs: Self) -> Self
pub const fn wrapping_sub(self, rhs: Self) -> Self
Wrapping (modular) subtraction. Computes self - rhs,
wrapping around at the boundary of the type.
§Examples
1.7.0 (const: 1.32.0) · Sourcepub const fn overflowing_add(self, rhs: Self) -> (Self, bool)
pub const fn overflowing_add(self, rhs: Self) -> (Self, bool)
Calculates self + rhs.
Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.
§Examples
1.7.0 (const: 1.32.0) · Sourcepub const fn overflowing_sub(self, rhs: Self) -> (Self, bool)
pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool)
Calculates self - rhs.
Returns a tuple of the subtraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.
§Examples
1.60.0 (const: 1.60.0) · Sourcepub const fn abs_diff(self, other: Self) -> Self
pub const fn abs_diff(self, other: Self) -> Self
Computes the absolute difference between self and other.
§Examples
1.7.0 (const: 1.32.0) · Sourcepub const fn overflowing_mul(self, rhs: Self) -> (Self, bool)
pub const fn overflowing_mul(self, rhs: Self) -> (Self, bool)
Calculates the multiplication of self and rhs.
Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.
If you want the value of the overflow, rather than just whether
an overflow occurred, see [Self::carrying_mul].
§Examples
Please note that this example is shared among integer types, which is why u32 is used.
1.87.0 (const: 1.87.0) · Sourcepub const fn is_multiple_of(self, rhs: Self) -> bool
pub const fn is_multiple_of(self, rhs: Self) -> bool
Returns true if self is an integer multiple of rhs, and false otherwise.
This function is equivalent to self % rhs == 0, except that it will not panic
for rhs == 0. Instead, 0.is_multiple_of(0) == true, and for any non-zero n,
n.is_multiple_of(0) == false.
§Examples
1.0.0 (const: 1.32.0) · Sourcepub const fn is_power_of_two(self) -> bool
pub const fn is_power_of_two(self) -> bool
Returns true if and only if self == 2^k for some unsigned integer k.
§Examples
1.32.0 (const: 1.44.0) · Sourcepub const fn to_le_bytes(self) -> [u8; 8]
pub const fn to_le_bytes(self) -> [u8; 8]
Returns the memory representation of this integer as a byte array in little-endian byte order.
§Examples
1.32.0 (const: 1.44.0) · Sourcepub const fn to_ne_bytes(self) -> [u8; 8]
pub const fn to_ne_bytes(self) -> [u8; 8]
Returns the memory representation of this integer as a byte array in native byte order.
As the target platform’s native endianness is used, portable code
should use to_be_bytes or to_le_bytes, as appropriate,
instead.
§Examples
1.32.0 (const: 1.44.0) · Sourcepub const fn from_le_bytes(bytes: [u8; 8]) -> Self
pub const fn from_le_bytes(bytes: [u8; 8]) -> Self
Creates a native endian integer value from its representation as a byte array in little endian.
§Examples
let value = u64::from_le_bytes([0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]);
assert_eq!(value, 0x1234567890123456);When starting from a slice rather than an array, fallible conversion APIs can be used:
1.32.0 (const: 1.44.0) · Sourcepub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
pub const fn from_ne_bytes(bytes: [u8; 8]) -> Self
Creates a native endian integer value from its memory representation as a byte array in native endianness.
As the target platform’s native endianness is used, portable code
likely wants to use from_be_bytes or from_le_bytes, as
appropriate instead.
§Examples
let value = u64::from_ne_bytes(if cfg!(target_endian = "big") {
[0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56]
} else {
[0x56, 0x34, 0x12, 0x90, 0x78, 0x56, 0x34, 0x12]
});
assert_eq!(value, 0x1234567890123456);When starting from a slice rather than an array, fallible conversion APIs can be used:
Trait Implementations§
1.22.0 (const: unstable) · Source§impl AddAssign<&u64> for u64
impl AddAssign<&u64> for u64
Source§fn add_assign(&mut self, other: &u64)
fn add_assign(&mut self, other: &u64)
+= operation. Read more1.8.0 (const: unstable) · Source§impl AddAssign for u64
impl AddAssign for u64
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
+= operation. Read more1.22.0 (const: unstable) · Source§impl BitAndAssign<&u64> for u64
impl BitAndAssign<&u64> for u64
Source§fn bitand_assign(&mut self, other: &u64)
fn bitand_assign(&mut self, other: &u64)
&= operation. Read more1.8.0 (const: unstable) · Source§impl BitAndAssign for u64
impl BitAndAssign for u64
Source§fn bitand_assign(&mut self, other: u64)
fn bitand_assign(&mut self, other: u64)
&= operation. Read more1.22.0 (const: unstable) · Source§impl BitOrAssign<&u64> for u64
impl BitOrAssign<&u64> for u64
Source§fn bitor_assign(&mut self, other: &u64)
fn bitor_assign(&mut self, other: &u64)
|= operation. Read more1.8.0 (const: unstable) · Source§impl BitOrAssign for u64
impl BitOrAssign for u64
Source§fn bitor_assign(&mut self, other: u64)
fn bitor_assign(&mut self, other: u64)
|= operation. Read more1.22.0 (const: unstable) · Source§impl BitXorAssign<&u64> for u64
impl BitXorAssign<&u64> for u64
Source§fn bitxor_assign(&mut self, other: &u64)
fn bitxor_assign(&mut self, other: &u64)
^= operation. Read more1.8.0 (const: unstable) · Source§impl BitXorAssign for u64
impl BitXorAssign for u64
Source§fn bitxor_assign(&mut self, other: u64)
fn bitxor_assign(&mut self, other: u64)
^= operation. Read more1.0.0 (const: unstable) · Source§impl Div for u64
This operation rounds towards zero, truncating any
fractional part of the exact result.
impl Div for u64
This operation rounds towards zero, truncating any fractional part of the exact result.
§Panics
This operation will panic if other == 0.
1.22.0 (const: unstable) · Source§impl DivAssign<&u64> for u64
impl DivAssign<&u64> for u64
Source§fn div_assign(&mut self, other: &u64)
fn div_assign(&mut self, other: &u64)
/= operation. Read more1.8.0 (const: unstable) · Source§impl DivAssign for u64
impl DivAssign for u64
Source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
/= operation. Read more1.22.0 (const: unstable) · Source§impl MulAssign<&u64> for u64
impl MulAssign<&u64> for u64
Source§fn mul_assign(&mut self, other: &u64)
fn mul_assign(&mut self, other: &u64)
*= operation. Read more1.8.0 (const: unstable) · Source§impl MulAssign for u64
impl MulAssign for u64
Source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
*= operation. Read more1.0.0 (const: unstable) · Source§impl Ord for u64
impl Ord for u64
1.0.0 (const: unstable) · Source§impl PartialOrd for u64
impl PartialOrd for u64
1.0.0 (const: unstable) · Source§impl Rem for u64
This operation satisfies n % d == n - (n / d) * d. The
result has the same sign as the left operand.
impl Rem for u64
This operation satisfies n % d == n - (n / d) * d. The
result has the same sign as the left operand.
§Panics
This operation will panic if other == 0.
1.22.0 (const: unstable) · Source§impl RemAssign<&u64> for u64
impl RemAssign<&u64> for u64
Source§fn rem_assign(&mut self, other: &u64)
fn rem_assign(&mut self, other: &u64)
%= operation. Read more1.8.0 (const: unstable) · Source§impl RemAssign for u64
impl RemAssign for u64
Source§fn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
%= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&i128> for u64
impl ShlAssign<&i128> for u64
Source§fn shl_assign(&mut self, other: &i128)
fn shl_assign(&mut self, other: &i128)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&i16> for u64
impl ShlAssign<&i16> for u64
Source§fn shl_assign(&mut self, other: &i16)
fn shl_assign(&mut self, other: &i16)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&i32> for u64
impl ShlAssign<&i32> for u64
Source§fn shl_assign(&mut self, other: &i32)
fn shl_assign(&mut self, other: &i32)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&i64> for u64
impl ShlAssign<&i64> for u64
Source§fn shl_assign(&mut self, other: &i64)
fn shl_assign(&mut self, other: &i64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&i8> for u64
impl ShlAssign<&i8> for u64
Source§fn shl_assign(&mut self, other: &i8)
fn shl_assign(&mut self, other: &i8)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&isize> for u64
impl ShlAssign<&isize> for u64
Source§fn shl_assign(&mut self, other: &isize)
fn shl_assign(&mut self, other: &isize)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u128> for u64
impl ShlAssign<&u128> for u64
Source§fn shl_assign(&mut self, other: &u128)
fn shl_assign(&mut self, other: &u128)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u16> for u64
impl ShlAssign<&u16> for u64
Source§fn shl_assign(&mut self, other: &u16)
fn shl_assign(&mut self, other: &u16)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u32> for u64
impl ShlAssign<&u32> for u64
Source§fn shl_assign(&mut self, other: &u32)
fn shl_assign(&mut self, other: &u32)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for i128
impl ShlAssign<&u64> for i128
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for i16
impl ShlAssign<&u64> for i16
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for i32
impl ShlAssign<&u64> for i32
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for i64
impl ShlAssign<&u64> for i64
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for i8
impl ShlAssign<&u64> for i8
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for isize
impl ShlAssign<&u64> for isize
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for u128
impl ShlAssign<&u64> for u128
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for u16
impl ShlAssign<&u64> for u16
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for u32
impl ShlAssign<&u64> for u32
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for u64
impl ShlAssign<&u64> for u64
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for u8
impl ShlAssign<&u64> for u8
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u64> for usize
impl ShlAssign<&u64> for usize
Source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&u8> for u64
impl ShlAssign<&u8> for u64
Source§fn shl_assign(&mut self, other: &u8)
fn shl_assign(&mut self, other: &u8)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShlAssign<&usize> for u64
impl ShlAssign<&usize> for u64
Source§fn shl_assign(&mut self, other: &usize)
fn shl_assign(&mut self, other: &usize)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<i128> for u64
impl ShlAssign<i128> for u64
Source§fn shl_assign(&mut self, other: i128)
fn shl_assign(&mut self, other: i128)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<i16> for u64
impl ShlAssign<i16> for u64
Source§fn shl_assign(&mut self, other: i16)
fn shl_assign(&mut self, other: i16)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<i32> for u64
impl ShlAssign<i32> for u64
Source§fn shl_assign(&mut self, other: i32)
fn shl_assign(&mut self, other: i32)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<i64> for u64
impl ShlAssign<i64> for u64
Source§fn shl_assign(&mut self, other: i64)
fn shl_assign(&mut self, other: i64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<i8> for u64
impl ShlAssign<i8> for u64
Source§fn shl_assign(&mut self, other: i8)
fn shl_assign(&mut self, other: i8)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<isize> for u64
impl ShlAssign<isize> for u64
Source§fn shl_assign(&mut self, other: isize)
fn shl_assign(&mut self, other: isize)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u128> for u64
impl ShlAssign<u128> for u64
Source§fn shl_assign(&mut self, other: u128)
fn shl_assign(&mut self, other: u128)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u16> for u64
impl ShlAssign<u16> for u64
Source§fn shl_assign(&mut self, other: u16)
fn shl_assign(&mut self, other: u16)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u32> for u64
impl ShlAssign<u32> for u64
Source§fn shl_assign(&mut self, other: u32)
fn shl_assign(&mut self, other: u32)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for i128
impl ShlAssign<u64> for i128
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for i16
impl ShlAssign<u64> for i16
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for i32
impl ShlAssign<u64> for i32
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for i64
impl ShlAssign<u64> for i64
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for i8
impl ShlAssign<u64> for i8
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for isize
impl ShlAssign<u64> for isize
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for u128
impl ShlAssign<u64> for u128
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for u16
impl ShlAssign<u64> for u16
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for u32
impl ShlAssign<u64> for u32
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for u8
impl ShlAssign<u64> for u8
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u64> for usize
impl ShlAssign<u64> for usize
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<u8> for u64
impl ShlAssign<u8> for u64
Source§fn shl_assign(&mut self, other: u8)
fn shl_assign(&mut self, other: u8)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign<usize> for u64
impl ShlAssign<usize> for u64
Source§fn shl_assign(&mut self, other: usize)
fn shl_assign(&mut self, other: usize)
<<= operation. Read more1.8.0 (const: unstable) · Source§impl ShlAssign for u64
impl ShlAssign for u64
Source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&i128> for u64
impl ShrAssign<&i128> for u64
Source§fn shr_assign(&mut self, other: &i128)
fn shr_assign(&mut self, other: &i128)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&i16> for u64
impl ShrAssign<&i16> for u64
Source§fn shr_assign(&mut self, other: &i16)
fn shr_assign(&mut self, other: &i16)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&i32> for u64
impl ShrAssign<&i32> for u64
Source§fn shr_assign(&mut self, other: &i32)
fn shr_assign(&mut self, other: &i32)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&i64> for u64
impl ShrAssign<&i64> for u64
Source§fn shr_assign(&mut self, other: &i64)
fn shr_assign(&mut self, other: &i64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&i8> for u64
impl ShrAssign<&i8> for u64
Source§fn shr_assign(&mut self, other: &i8)
fn shr_assign(&mut self, other: &i8)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&isize> for u64
impl ShrAssign<&isize> for u64
Source§fn shr_assign(&mut self, other: &isize)
fn shr_assign(&mut self, other: &isize)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u128> for u64
impl ShrAssign<&u128> for u64
Source§fn shr_assign(&mut self, other: &u128)
fn shr_assign(&mut self, other: &u128)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u16> for u64
impl ShrAssign<&u16> for u64
Source§fn shr_assign(&mut self, other: &u16)
fn shr_assign(&mut self, other: &u16)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u32> for u64
impl ShrAssign<&u32> for u64
Source§fn shr_assign(&mut self, other: &u32)
fn shr_assign(&mut self, other: &u32)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for i128
impl ShrAssign<&u64> for i128
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for i16
impl ShrAssign<&u64> for i16
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for i32
impl ShrAssign<&u64> for i32
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for i64
impl ShrAssign<&u64> for i64
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for i8
impl ShrAssign<&u64> for i8
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for isize
impl ShrAssign<&u64> for isize
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for u128
impl ShrAssign<&u64> for u128
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for u16
impl ShrAssign<&u64> for u16
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for u32
impl ShrAssign<&u64> for u32
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for u64
impl ShrAssign<&u64> for u64
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for u8
impl ShrAssign<&u64> for u8
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u64> for usize
impl ShrAssign<&u64> for usize
Source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&u8> for u64
impl ShrAssign<&u8> for u64
Source§fn shr_assign(&mut self, other: &u8)
fn shr_assign(&mut self, other: &u8)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl ShrAssign<&usize> for u64
impl ShrAssign<&usize> for u64
Source§fn shr_assign(&mut self, other: &usize)
fn shr_assign(&mut self, other: &usize)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<i128> for u64
impl ShrAssign<i128> for u64
Source§fn shr_assign(&mut self, other: i128)
fn shr_assign(&mut self, other: i128)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<i16> for u64
impl ShrAssign<i16> for u64
Source§fn shr_assign(&mut self, other: i16)
fn shr_assign(&mut self, other: i16)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<i32> for u64
impl ShrAssign<i32> for u64
Source§fn shr_assign(&mut self, other: i32)
fn shr_assign(&mut self, other: i32)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<i64> for u64
impl ShrAssign<i64> for u64
Source§fn shr_assign(&mut self, other: i64)
fn shr_assign(&mut self, other: i64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<i8> for u64
impl ShrAssign<i8> for u64
Source§fn shr_assign(&mut self, other: i8)
fn shr_assign(&mut self, other: i8)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<isize> for u64
impl ShrAssign<isize> for u64
Source§fn shr_assign(&mut self, other: isize)
fn shr_assign(&mut self, other: isize)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u128> for u64
impl ShrAssign<u128> for u64
Source§fn shr_assign(&mut self, other: u128)
fn shr_assign(&mut self, other: u128)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u16> for u64
impl ShrAssign<u16> for u64
Source§fn shr_assign(&mut self, other: u16)
fn shr_assign(&mut self, other: u16)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u32> for u64
impl ShrAssign<u32> for u64
Source§fn shr_assign(&mut self, other: u32)
fn shr_assign(&mut self, other: u32)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for i128
impl ShrAssign<u64> for i128
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for i16
impl ShrAssign<u64> for i16
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for i32
impl ShrAssign<u64> for i32
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for i64
impl ShrAssign<u64> for i64
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for i8
impl ShrAssign<u64> for i8
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for isize
impl ShrAssign<u64> for isize
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for u128
impl ShrAssign<u64> for u128
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for u16
impl ShrAssign<u64> for u16
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for u32
impl ShrAssign<u64> for u32
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for u8
impl ShrAssign<u64> for u8
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u64> for usize
impl ShrAssign<u64> for usize
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<u8> for u64
impl ShrAssign<u8> for u64
Source§fn shr_assign(&mut self, other: u8)
fn shr_assign(&mut self, other: u8)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign<usize> for u64
impl ShrAssign<usize> for u64
Source§fn shr_assign(&mut self, other: usize)
fn shr_assign(&mut self, other: usize)
>>= operation. Read more1.8.0 (const: unstable) · Source§impl ShrAssign for u64
impl ShrAssign for u64
Source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>= operation. Read more1.22.0 (const: unstable) · Source§impl SubAssign<&u64> for u64
impl SubAssign<&u64> for u64
Source§fn sub_assign(&mut self, other: &u64)
fn sub_assign(&mut self, other: &u64)
-= operation. Read more1.8.0 (const: unstable) · Source§impl SubAssign for u64
impl SubAssign for u64
Source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
-= operation. Read more1.34.0 (const: unstable) · Source§impl TryFrom<usize> for u64
impl TryFrom<usize> for u64
Source§fn try_from(value: usize) -> Result<Self, Self::Error>
fn try_from(value: usize) -> Result<Self, Self::Error>
Tries to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.