pub struct IoRead<R>where
R: Read,{ /* private fields */ }
Expand description
A wrapper to implement this crate’s Read trait for std::io::Read
trait implementations.
Implementations§
Trait Implementations§
Source§impl<'a, R> Read<'a> for IoRead<R>where
R: Read,
impl<'a, R> Read<'a> for IoRead<R>where
R: Read,
Source§fn peek(&mut self) -> Option<Result<u8>>
fn peek(&mut self) -> Option<Result<u8>>
Returns the next byte but does not consume. Read more
Source§fn byte_offset(&self) -> usize
fn byte_offset(&self) -> usize
Returns the position in the stream of bytes.
Source§fn parse_byte_str<'b>(
&'b mut self,
buf: &'b mut Vec<u8>,
) -> Result<Ref<'a, 'b, [u8]>>
fn parse_byte_str<'b>( &'b mut self, buf: &'b mut Vec<u8>, ) -> Result<Ref<'a, 'b, [u8]>>
Returns the next slice of data for the given length. Read more
Source§fn parse_raw_integer<'b>(
&'b mut self,
buf: &'b mut Vec<u8>,
) -> Result<Ref<'a, 'b, [u8]>>
fn parse_raw_integer<'b>( &'b mut self, buf: &'b mut Vec<u8>, ) -> Result<Ref<'a, 'b, [u8]>>
Consumes and returns the next integer raw encoding. Read more
Source§fn parse_raw_byte_str<'b>(
&mut self,
buf: &'b mut Vec<u8>,
) -> Result<Ref<'a, 'b, [u8]>>
fn parse_raw_byte_str<'b>( &mut self, buf: &'b mut Vec<u8>, ) -> Result<Ref<'a, 'b, [u8]>>
Consumes and returns the next byte string raw encoding. Read more
Auto Trait Implementations§
impl<R> Freeze for IoRead<R>where
R: Freeze,
impl<R> RefUnwindSafe for IoRead<R>where
R: RefUnwindSafe,
impl<R> Send for IoRead<R>where
R: Send,
impl<R> Sync for IoRead<R>where
R: Sync,
impl<R> Unpin for IoRead<R>where
R: Unpin,
impl<R> UnwindSafe for IoRead<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more