diff --git a/src/array_string.rs b/src/array_string.rs index fdce16a..a044cb5 100644 --- a/src/array_string.rs +++ b/src/array_string.rs @@ -370,6 +370,11 @@ impl ArrayString self } + /// Return a mutable string slice of the whole `ArrayString`. + pub fn as_mut_str(&mut self) -> &mut str { + self + } + fn as_ptr(&self) -> *const u8 { self.xs.as_ptr() as *const u8 }