We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d8b6b commit 6b74b96Copy full SHA for 6b74b96
alloc/src/string.rs
@@ -2481,14 +2481,14 @@ impl<'a> Drain<'a> {
2481
}
2482
2483
2484
-#[unstable(feature = "string_drain_as_str", issue = "none")]
+#[stable(feature = "string_drain_as_ref", since = "1.48.0")]
2485
impl<'a> AsRef<str> for Drain<'a> {
2486
fn as_ref(&self) -> &str {
2487
self.as_str()
2488
2489
2490
2491
2492
impl<'a> AsRef<[u8]> for Drain<'a> {
2493
fn as_ref(&self) -> &[u8] {
2494
self.as_str().as_bytes()
0 commit comments