Trait scratchpad::Buffer [−][src]
Trait for Scratchpad
buffer types.
Buffer
objects contain the memory from which Scratchpad
allocations
are made. Scratchpad
handles all bookkeeping, so a buffer only needs
to provide methods for raw access of the buffer memory.
Required Methods
fn as_bytes(&self) -> &[u8]
Returns a byte slice of the buffer contents.
fn as_bytes_mut(&mut self) -> &mut [u8]
Returns a mutable byte slice of the buffer contents.
Implementations on Foreign Types
impl<'a, T> Buffer for &'a mut [T] where
T: ByteData,
[src]
impl<'a, T> Buffer for &'a mut [T] where
T: ByteData,
impl<T> Buffer for Box<[T]> where
T: ByteData,
[src]
impl<T> Buffer for Box<[T]> where
T: ByteData,