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]>
&mut self,
buf: BufferRef<'d, 's>
) -> Result<&'d [u8]>
Reads (equivalently to Read::read) into the buffer ref and returns
the newly written bytes.
Implementors
impl<T: ReadBufferMarker> ReadBufferRef for T