5

Tracking Issue for feature(string_drain_as_str) - string::Drain::as_str() · Issu...

 2 years ago
source link: https://github.com/rust-lang/rust/issues/76905
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

Member

m-ou-se commented on Sep 19, 2020

Tracking Issue for string_drain_as_str as introduced by #76525.

  • Drain::as_str()
  • AsRef<str> for Drain
  • AsRef<[u8]> for Drain

The first one is now gated behind feature(string_drain_as_str). The other two are not available yet, as trait implementations cannot be unstable. These should be added (uncommented) when this feature is stabilized.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK