pub trait HostBufferMut: Send + 'static {
// Required methods
fn len(&self) -> usize;
fn alignment(&self) -> Alignment;
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ;
fn freeze(self: Box<Self>) -> ByteBuffer;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Mutable host buffer contract used by WritableHostBuffer.
Required Methods§
Sourcefn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns mutable access to the writable byte range.
Sourcefn freeze(self: Box<Self>) -> ByteBuffer
fn freeze(self: Box<Self>) -> ByteBuffer
Freeze the buffer into an immutable ByteBuffer.