Trait buffer::ReadBuffer
[−]
[src]
pub trait ReadBuffer: ReadBufferRef { fn read_buffer<'d, B: Buffer<'d>>(&mut self, buf: B) -> Result<&'d [u8]> { ... } }
Trait to read to T: Buffer
.
This trait should be imported to read into buffers.
Provided Methods
fn read_buffer<'d, B: Buffer<'d>>(&mut self, buf: B) -> Result<&'d [u8]>
Reads (equivalently to Read::read
) into the buffer and returns the
newly read bytes.
Implementors
impl<T: ReadBufferRef> ReadBuffer for T