Trait object::pod::WritableBuffer [−][src]
pub trait WritableBuffer {
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn reserve(&mut self, additional: usize) -> Result<(), ()>;
fn resize(&mut self, new_len: usize, value: u8);
fn extend(&mut self, val: &[u8]);
}
Expand description
Trait for writable buffer.
Required methods
Reserves specified number of bytes in the buffer.
Resizes buffer to the specified length, fills new items with the specified value.