doc.rust-lang.org
pub const fn is_ascii_alphabetic(&self) -> bool
Checks if the value is an ASCII alphabetic character:
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii(&self) -> bool
Checks if the value is within the ASCII range.
method
core
Stable since 1.23.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<u8, 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; 1]) -> Self
Creates a native endian 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; 1]) -> Self
Creates a native endian 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; 1]) -> Self
Creates a native endian 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
doc.rust-lang.org
pub const fn from_be(x: Self) -> Self
Converts an integer from big endian to the target's endianness.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn format_into(self, buf: &mut NumBuffer<Self>) -> &str
Allows users to write an integer (in unsigned decimal format) into a variable buf of type NumBuffer that is passed by the caller by mutable reference.
method
core
Stable since 1.98.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn escape_ascii(self) -> ascii::EscapeDefault
Returns an iterator that produces an escaped version of a u8, treating it as an ASCII character.
method
core
Stable since 1.60.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn eq_ignore_ascii_case(&self, other: &u8) -> bool
Checks that two values are an ASCII case-insensitive match.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn div_euclid(self, rhs: Self) -> Self
Performs Euclidean division.
method
core
Stable since 1.38.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn div_ceil(self, rhs: Self) -> Self
Calculates the quotient of self and rhs, rounding the result towards positive infinity.
method
core
Stable since 1.73.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn count_zeros(self) -> u32
Returns the number of 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 count_ones(self) -> u32
Returns the number of ones 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 checked_sub_signed(self, rhs: i8) -> Option<Self>
Checked subtraction with a signed integer. Computes self - rhs, returning None if overflow occurred.
method
core
Stable since 1.90.0
Version 1.100.0-nightly