Implement AsMut<str> for str
This commit is contained in:
parent
11c94a1977
commit
05af4213b5
1 changed files with 8 additions and 0 deletions
|
|
@ -623,6 +623,14 @@ impl AsRef<str> for str {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "as_mut_str_for_str", since = "1.50.0")]
|
||||
impl AsMut<str> for str {
|
||||
#[inline]
|
||||
fn as_mut(&mut self) -> &mut str {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// THE NO-ERROR ERROR TYPE
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue