doc.rust-lang.org
pub const fn max_value() -> Self
New code should prefer to use u8::MAX instead.
associated_function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn make_ascii_uppercase(&mut self)
Converts this value to its ASCII upper case equivalent in-place.
method
core
Stable since 1.23.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn make_ascii_lowercase(&mut self)
Converts this value to its ASCII lower case equivalent in-place.
method
core
Stable since 1.23.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 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_power_of_two(self) -> bool
Returns true if and only if self == 2^k for some unsigned integer k.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_multiple_of(self, rhs: Self) -> bool
Returns true if self is an integer multiple of rhs, and false otherwise.
method
core
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_whitespace(&self) -> bool
Checks if the value is an ASCII whitespace character: U+0020 SPACE, U+0009 HORIZONTAL TAB, U+000A LINE FEED, U+000C FORM FEED, or U+000D CARRIAGE RETURN.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_uppercase(&self) -> bool
Checks if the value is an ASCII uppercase character: U+0041 'A' ..= U+005A 'Z'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_punctuation(&self) -> bool
Checks if the value is an ASCII punctuation or symbol character (i.e. not alphanumeric, whitespace, or control):
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_lowercase(&self) -> bool
Checks if the value is an ASCII lowercase character: U+0061 'a' ..= U+007A 'z'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_hexdigit(&self) -> bool
Checks if the value is an ASCII hexadecimal digit:
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_graphic(&self) -> bool
Checks if the value is an ASCII graphic character (i.e. not whitespace or control): U+0021 '!' ..= U+007E '~'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_digit(&self) -> bool
Checks if the value is an ASCII decimal digit: U+0030 '0' ..= U+0039 '9'.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_control(&self) -> bool
Checks if the value is an ASCII control character: U+0000 NUL ..= U+001F UNIT SEPARATOR, or U+007F DELETE. Note that most ASCII whitespace characters are control characters, but SPACE is not.
method
core
Stable since 1.24.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn is_ascii_alphanumeric(&self) -> bool
Checks if the value is an ASCII alphanumeric character:
method
core
Stable since 1.24.0
Version 1.100.0-nightly