doc.rust-lang.org
pub const fn wrapping_neg(self) -> Self
Wrapping (modular) negation. Computes -self, wrapping around at the boundary of the type.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_mul(self, rhs: Self) -> Self
Wrapping (modular) multiplication. Computes self * rhs, wrapping around at the boundary of the type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_div_euclid(self, rhs: Self) -> Self
Wrapping Euclidean division. Computes self.div_euclid(rhs).
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_div(self, rhs: Self) -> Self
Wrapping (modular) division. Computes self / rhs.
method
core
Stable since 1.2.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_add_signed(self, rhs: i32) -> Self
Wrapping (modular) addition with a signed integer. Computes self + rhs, wrapping around at the boundary of the type.
method
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_add(self, rhs: Self) -> Self
Wrapping (modular) addition. Computes self + rhs, wrapping around at the boundary of the type.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_sub(self, rhs: Self) -> Self
Unchecked integer subtraction. Computes self - rhs, assuming overflow cannot occur.
method
core
Stable since 1.79.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_shr(self, rhs: u32) -> Self
Unchecked shift right. Computes self >> rhs, assuming that rhs is less than the number of bits in self.
method
core
Stable since 1.93.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_shl(self, rhs: u32) -> Self
Unchecked shift left. Computes self << rhs, assuming that rhs is less than the number of bits in self.
method
core
Stable since 1.93.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_mul(self, rhs: Self) -> Self
Unchecked integer multiplication. Computes self * rhs, assuming overflow cannot occur.
method
core
Stable since 1.79.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn unchecked_add(self, rhs: Self) -> Self
Unchecked integer addition. Computes self + rhs, assuming overflow cannot occur.
method
core
Stable since 1.79.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unbounded_shr(self, rhs: u32) -> u32
Unbounded shift right. Computes self >> rhs, without bounding the value of rhs.
method
core
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn unbounded_shl(self, rhs: u32) -> u32
Unbounded shift left. Computes self << rhs, without bounding the value of rhs.
method
core
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn trailing_zeros(self) -> u32
Returns the number of trailing zeros in the binary representation of self.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn trailing_ones(self) -> u32
Returns the number of trailing ones in the binary representation of self.
method
core
Stable since 1.46.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_ne_bytes(self) -> [u8; 4]
Returns the memory representation of this integer as a byte array in native byte order.
method
core
Stable since 1.32.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_le_bytes(self) -> [u8; 4]
Returns the memory representation of this integer as a byte array in little-endian byte order.
method
core
Stable since 1.32.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_le(self) -> Self
Converts self to little endian from the target's endianness.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_be_bytes(self) -> [u8; 4]
Returns the memory representation of this integer as a byte array in big-endian (network) byte order.
method
core
Stable since 1.32.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn to_be(self) -> Self
Converts self to big endian from the target's endianness.
method
core
Stable since 1.0.0
Version 1.100.0-nightly