impl AsMut<str> for ShString

This commit is contained in:
Pantonshire committed 2022-05-16 15:18:13 +01:00
1 parent 8b1fd457a8
commit 8ba4dbcce6
1 file changed
+7
+7
View File
@@ -185,6 +185,13 @@ impl<const N: usize> AsRef<str> for ShString<N> {
}
}
impl<const N: usize> AsMut<str> for ShString<N> {
#[inline]
fn as_mut(&mut self) -> &mut str {
self
}
}
impl<const N: usize> borrow::Borrow<str> for ShString<N> {
#[inline]
fn borrow(&self) -> &str {