Feature gate: #![feature(is_ascii_octdigit)]
This is a tracking issue for two new methods char::is_ascii_octdigit and u8::is_ascii_octdigit, which, in the same vein as is_ascii_hexdigit, checks if a value is an ASCII octal digit ('0'..='7').
This is a shorthand for {char, u8}::is_digit(self, 8). Prior discussion on irlo.
Public API
// core::char
impl char {
pub fn is_ascii_octdigit(self) -> bool;
}
// core::num
impl u8 {
pub fn is_ascii_octdigit(self) -> bool;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(is_ascii_octdigit)]This is a tracking issue for two new methods
char::is_ascii_octdigitandu8::is_ascii_octdigit, which, in the same vein asis_ascii_hexdigit, checks if a value is an ASCII octal digit ('0'..='7').This is a shorthand for
{char, u8}::is_digit(self, 8). Prior discussion on irlo.Public API
Steps / History
{char, u8}::is_ascii_octdigit#101308Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩