implement AsMut<str> for String
This commit is contained in:
parent
64184a3288
commit
fd22823881
1 changed files with 8 additions and 0 deletions
|
|
@ -2208,6 +2208,14 @@ impl AsRef<str> for String {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "string_as_mut", since = "1.43.0")]
|
||||
impl AsMut<str> for String {
|
||||
#[inline]
|
||||
fn as_mut(&mut self) -> &mut str {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl AsRef<[u8]> for String {
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue