pub trait MutableBuffer: Buffer {
// Provided method
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ { ... }
}
Expand description
The MutableBuffer
trait extends the Buffer
trait and provides methods for working with a mutable buffer.
Provided Methods§
Sourcefn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Returns a mutable reference to the buffer contents as a byte slice.