1

Tracking Issue for inherent_ascii_escape · Issue #77174 · rust-lang/rust · GitHu...

 2 years ago
source link: https://github.com/rust-lang/rust/issues/77174
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

clarfonthey commented on Sep 25, 2020

edited

Feature gate: #![feature(inherent_ascii_escape)]

Public API

impl u8 {
    pub fn escape_ascii(self) -> core::ascii::EscapeDefault;
}

impl [u8] {
    pub fn escape_ascii(&self) -> EscapeAscii<'_>;
}

// core::slice
pub struct EscapeAscii<'a>;

Steps / History

  • Implementation: #73111 #83130
  • Final commenting period (FCP)
  • Stabilization PR

Unresolved Questions

  • Naming. escape_ascii, escape_default, ascii_escape_default, ... ?
  • Deprecate std::ascii::escape_default? (That is, all of std::ascii.)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK