There was an error while loading. Please reload this page.
AsMut<str>
str
1 parent 11c94a1 commit 05af421Copy full SHA for 05af421
1 file changed
library/core/src/convert/mod.rs
@@ -623,6 +623,14 @@ impl AsRef<str> for str {
623
}
624
625
626
+#[stable(feature = "as_mut_str_for_str", since = "1.50.0")]
627
+impl AsMut<str> for str {
628
+ #[inline]
629
+ fn as_mut(&mut self) -> &mut str {
630
+ self
631
+ }
632
+}
633
+
634
////////////////////////////////////////////////////////////////////////////////
635
// THE NO-ERROR ERROR TYPE
636
0 commit comments