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 modulo. Computes self.rem_euclid(rhs).
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.
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 unless self == 0.
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).
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.
method
core
Stable since 1.91.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn strict_add_signed(self, rhs: i8) -> Self
Strict addition with a signed 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 saturating_sub_signed(self, rhs: i8) -> Self
Saturating integer subtraction. Computes self - rhs, saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.90.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_mul(self, rhs: Self) -> Self
Saturating integer multiplication. Computes self * rhs, saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_div(self, rhs: Self) -> Self
Saturating integer division. Computes self / rhs, saturating at the numeric bounds instead of overflowing.
method
core
Stable since 1.58.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn saturating_add_signed(self, rhs: i8) -> Self
Saturating addition with a signed 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_add(self, rhs: Self) -> Self
Saturating integer addition. 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 rotate_right(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.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn rotate_left(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.
method
core
Stable since 1.0.0
Version 1.100.0-nightly