Struct serde_json::de::IoRead
[−]
[src]
pub struct IoRead<R> where
R: Read, { /* fields omitted */ }
JSON input source that reads from a std::io input stream.
Methods
impl<R> IoRead<R> where
R: Read,
[src]
R: Read,
fn new(reader: R) -> Self
Create a JSON input source to read from a std::io input stream.
Trait Implementations
impl<'de, R> Read<'de> for IoRead<R> where
R: Read,
[src]
R: Read,
fn next(&mut self) -> Result<Option<u8>>
fn peek(&mut self) -> Result<Option<u8>>
fn discard(&mut self)
fn position(&self) -> Position
fn peek_position(&self) -> Position
fn byte_offset(&self) -> usize
fn parse_str<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>>
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>>
fn parse_str_raw<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, [u8]>>
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, [u8]>>