pub struct StreamRead<R: Read> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'de, R: Read> Read<'de> for StreamRead<R>
impl<'de, R: Read> Read<'de> for StreamRead<R>
fn position(&self) -> Position
fn peek_n(&mut self, n: usize) -> Result<&[u8]>
fn next(&mut self) -> Result<u8>
fn parse_str<'s, F>( &'s mut self, escape: bool, scratch: &'s mut Vec<u8>, delimiter: F, ) -> Result<Reference<'de, 's, str>>
fn peek(&mut self) -> Result<u8>
fn peek2(&mut self) -> Result<(u8, u8)>
fn discard(&mut self, n: usize) -> Result<()>
fn peek_whitespace(&mut self) -> Result<Option<usize>>
fn starts_with_whitespace(&mut self) -> Result<bool>
fn peek_horizontal_whitespace(&mut self) -> Result<Option<usize>>
fn starts_with_horizontal_whitespace(&mut self) -> Result<bool>
Auto Trait Implementations§
impl<R> Freeze for StreamRead<R>where
R: Freeze,
impl<R> RefUnwindSafe for StreamRead<R>where
R: RefUnwindSafe,
impl<R> Send for StreamRead<R>where
R: Send,
impl<R> Sync for StreamRead<R>where
R: Sync,
impl<R> Unpin for StreamRead<R>where
R: Unpin,
impl<R> UnwindSafe for StreamRead<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