Trait buffer::ReadBufferRef[][src]

pub trait ReadBufferRef: Read {
    fn read_buffer_ref<'d, 's>(
        &mut self,
        buf: BufferRef<'d, 's>
    ) -> Result<&'d [u8]>; }

An internal trait to be implemented by T: Read which do not access the read buffer in Read::read. Prefer implementing ReadBufferMarker over this.

Required methods

fn read_buffer_ref<'d, 's>(
    &mut self,
    buf: BufferRef<'d, 's>
) -> Result<&'d [u8]>
[src]

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

Loading content...

Implementors

impl<T: ReadBufferMarker> ReadBufferRef for T[src]

Loading content...