Tracking Issue for {char, u8}::is_ascii_octdigit · Issue #101288 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@oppiliappan

Description

@oppiliappan

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

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html