Tracking Issue for {char, u8}::is_ascii_octdigit
· Issue #101288 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
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
- Implementation: introduce {char, u8}::is_ascii_octdigit #101308
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.