Description
Feature gate: #![feature(const_make_ascii)]
This is a tracking issue for marking the make_ascii_uppercase
and make_ascii_lowercase
methods in char
, u8
, [u8]
, and str
as "const."
Public API
impl char {
pub const fn make_ascii_uppercase(&mut self);
pub const fn make_ascii_lowercase(&mut self);
}
impl u8 {
pub const fn make_ascii_uppercase(&mut self);
pub const fn make_ascii_lowercase(&mut self);
}
impl [u8] {
pub const fn make_ascii_uppercase(&mut self);
pub const fn make_ascii_lowercase(&mut self);
}
impl str {
pub const fn make_ascii_uppercase(&mut self);
pub const fn make_ascii_lowercase(&mut self);
}
Steps / History
- Implementation for
char
: Markchar::make_ascii_uppercase
andchar::make_ascii_lowercase
as const. #130697 - Implementation for
u8
: Marku8::make_ascii_uppercase
andu8::make_ascii_lowercase
as const. #130713 - Implementation for
[u8]
andstr
: Markmake_ascii_uppercase
andmake_ascii_lowercase
in[u8]
andstr
as const. #130738 - Final comment period (FCP)
- Stabilization PR: Stabilise
const_make_ascii
. #131496
Unresolved Questions
- None yet.