doc.rust-lang.org
pub const fn rem_euclid(self, rhs: Self) -> Self
Calculates the least nonnegative remainder of self when divided by rhs.
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn pow(self, exp: u32) -> Self
Raises self to the power of exp, using exponentiation by squaring.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_sub_unsigned(self, rhs: u16) -> (Self, bool)
Calculates self - rhs with an unsigned rhs.
method
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool)
Calculates self - rhs.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_shr(self, rhs: u32) -> (Self, bool)
Shifts self right by rhs bits.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_shl(self, rhs: u32) -> (Self, bool)
Shifts self left by rhs bits.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool)
Overflowing Euclidean remainder. Calculates self.rem_euclid(rhs).
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_rem(self, rhs: Self) -> (Self, bool)
Calculates the remainder when self is divided by rhs.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_pow(self, exp: u32) -> (Self, bool)
Raises self to the power of exp, using exponentiation by squaring.
method
core
Stable since 1.34.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_neg(self) -> (Self, bool)
Negates self, overflowing if this is equal to the minimum value.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_mul(self, rhs: Self) -> (Self, bool)
Calculates the multiplication of self and rhs.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool)
Calculates the quotient of Euclidean division self.div_euclid(rhs).
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_div(self, rhs: Self) -> (Self, bool)
Calculates the divisor when self is divided by rhs.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_add_unsigned(self, rhs: u16) -> (Self, bool)
Calculates self + rhs with an unsigned rhs.
method
core
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_add(self, rhs: Self) -> (Self, bool)
Calculates self + rhs.
method
core
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn overflowing_abs(self) -> (Self, bool)
Computes the absolute value of self.
method
core
Stable since 1.13.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn min_value() -> Self
New code should prefer to use i16::MIN instead.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn midpoint(self, rhs: i16) -> i16
Calculates the midpoint (average) between self and rhs.
method
core
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn max_value() -> Self
New code should prefer to use i16::MAX instead.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn lowest_one(self) -> Option<u32>
Returns the index of the lowest bit set to one in self, or None if self is 0.
method
core
Stable since 1.97.0
Version 1.100.0-nightly