We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64184a3 commit fd22823Copy full SHA for fd22823
src/liballoc/string.rs
@@ -2208,6 +2208,14 @@ impl AsRef<str> for String {
2208
}
2209
2210
2211
+#[stable(feature = "string_as_mut", since = "1.43.0")]
2212
+impl AsMut<str> for String {
2213
+ #[inline]
2214
+ fn as_mut(&mut self) -> &mut str {
2215
+ self
2216
+ }
2217
+}
2218
+
2219
#[stable(feature = "rust1", since = "1.0.0")]
2220
impl AsRef<[u8]> for String {
2221
#[inline]
0 commit comments