impl AsMut<str> for ShString
This commit is contained in:
1 parent
8b1fd457a8
commit
8ba4dbcce6
1 file changed
+7
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user