doc.rust-lang.org
pub const fn min_value() -> Self
New code should prefer to use i128::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: Self) -> Self
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 i128::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
doc.rust-lang.org
pub const fn leading_zeros(self) -> u32
Returns the number of leading 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 leading_ones(self) -> u32
Returns the number of leading 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 isqrt(self) -> Self
Returns the integer square root of the number, rounded down.
method
core
Stable since 1.84.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn isolate_lowest_one(self) -> Self
Returns self with only the least significant bit set, or 0 if the input is 0.
method
core
Stable since 1.97.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn isolate_highest_one(self) -> Self
Returns self with only the most significant bit set, or 0 if the input is 0.
method
core
Stable since 1.97.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_positive(self) -> bool
Returns true if self is positive and false if the number is zero or negative.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_negative(self) -> bool
Returns true if self is negative and false if the number is zero or positive.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ilog2(self) -> u32
Returns the base 2 logarithm of the number, rounded down.
method
core
Stable since 1.67.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ilog10(self) -> u32
Returns the base 10 logarithm of the number, rounded down.
method
core
Stable since 1.67.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ilog(self, base: Self) -> u32
Returns the logarithm of the number with respect to an arbitrary base, rounded down.
method
core
Stable since 1.67.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn highest_one(self) -> Option<u32>
Returns the index of the highest bit set to one in self, or None if self is 0.
method
core
Stable since 1.97.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_str_radix(src: &str, radix: u32) -> Result<i128, ParseIntError>
Parses an integer from a string slice with digits in a given base.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_ne_bytes(bytes: [u8; 16]) -> Self
Creates an integer value from its memory representation as a byte array in native endianness.
associated_function
core
Stable since 1.32.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_le_bytes(bytes: [u8; 16]) -> Self
Creates an integer value from its representation as a byte array in little endian.
associated_function
core
Stable since 1.32.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_le(x: Self) -> Self
Converts an integer from little endian to the target's endianness.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn from_be_bytes(bytes: [u8; 16]) -> Self
Creates an integer value from its representation as a byte array in big endian.
associated_function
core
Stable since 1.32.0
Version 1.100.0-nightly