about summary refs log tree commit diff
path: root/library/core/src/bstr/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/bstr/mod.rs')
-rw-r--r--library/core/src/bstr/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/core/src/bstr/mod.rs b/library/core/src/bstr/mod.rs
index c33dd244ad9..c8d0c701ba8 100644
--- a/library/core/src/bstr/mod.rs
+++ b/library/core/src/bstr/mod.rs
@@ -92,6 +92,13 @@ impl ByteStr {
     pub fn as_bytes(&self) -> &[u8] {
         &self.0
     }
+
+    #[doc(hidden)]
+    #[unstable(feature = "bstr_internals", issue = "none")]
+    #[inline]
+    pub fn as_bytes_mut(&mut self) -> &mut [u8] {
+        &mut self.0
+    }
 }
 
 #[unstable(feature = "bstr", issue = "134915")]