mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-15 00:00:18 +02:00
committed by
Carl Lerche
parent
b9ccd2a866
commit
6750a26fd0
@@ -1405,6 +1405,12 @@ impl ops::Deref for BytesMut {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsMut<[u8]> for BytesMut {
|
||||
fn as_mut(&mut self) -> &mut [u8] {
|
||||
self.inner.as_mut()
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::DerefMut for BytesMut {
|
||||
#[inline]
|
||||
fn deref_mut(&mut self) -> &mut [u8] {
|
||||
|
||||
Reference in New Issue
Block a user