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

Reads (equivalently to Read::read) into the buffer and returns the newly read bytes.

Implementors