doc.rust-lang.org
pub const fn swap_bytes(self) -> Self
Reverses the byte order of the integer.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_sub_unsigned(self, rhs: u8) -> Self
Strict subtraction with an unsigned integer. Computes self - rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_sub(self, rhs: Self) -> Self
Strict integer subtraction. Computes self - rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_shr(self, rhs: u32) -> Self
Strict shift right. Computes self >> rhs, panicking if rhs is larger than or equal to the number of bits in self.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_shl(self, rhs: u32) -> Self
Strict shift left. Computes self << rhs, panicking if rhs is larger than or equal to the number of bits in self.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_rem_euclid(self, rhs: Self) -> Self
Strict Euclidean remainder. Computes self.rem_euclid(rhs), panicking if the division results in overflow.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_rem(self, rhs: Self) -> Self
Strict integer remainder. Computes self % rhs, panicking if the division results in overflow.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_pow(self, exp: u32) -> Self
Strict exponentiation. Computes self.pow(exp), panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_neg(self) -> Self
Strict negation. Computes -self, panicking if self == MIN.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_mul(self, rhs: Self) -> Self
Strict integer multiplication. Computes self * rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_div_euclid(self, rhs: Self) -> Self
Strict Euclidean division. Computes self.div_euclid(rhs), panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_div(self, rhs: Self) -> Self
Strict integer division. Computes self / rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_add_unsigned(self, rhs: u8) -> Self
Strict addition with an unsigned integer. Computes self + rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_add(self, rhs: Self) -> Self
Strict integer addition. Computes self + rhs, panicking if overflow occurred.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_abs(self) -> Self
Strict absolute value. Computes self.abs(), panicking if self == MIN.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn signum(self) -> Self
Returns a number representing sign of self.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub_unsigned(self, rhs: u8) -> Self
Saturating subtraction with an unsigned integer. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_sub(self, rhs: Self) -> Self
Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_pow(self, exp: u32) -> Self
Saturating integer exponentiation. Computes self.pow(exp), saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.34.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_neg(self) -> Self
Saturating integer negation. Computes -self, returning MAX if self == MIN instead of overflowing.
method
core
Stable since 1.45.0
Version 1.100.0-nightly