[−][src]Trait serde_json::de::Read
Trait used by the deserializer for iterating over input. This is manually "specialized" for iterating over &[u8]. Once feature(specialization) is stable we can use actual specialization.
This trait is sealed and cannot be implemented for types outside of
serde_json
.
Implementations on Foreign Types
impl<'a, 'de, R> Read<'de> for &'a mut R where
R: Read<'de>,
[src]
R: Read<'de>,
fn next(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn discard(&mut self)
[src]
fn position(&self) -> Position
[src]
fn peek_position(&self) -> Position
[src]
fn byte_offset(&self) -> usize
[src]
fn parse_str<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>>
[src]
&'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]>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, [u8]>>
fn ignore_str(&mut self) -> Result<()>
[src]
fn decode_hex_escape(&mut self) -> Result<u16>
[src]
const should_early_return_if_failed: bool
[src]
fn set_failed(&mut self, failed: &mut bool)
[src]
Implementors
impl<'a> Read<'a> for SliceRead<'a>
[src]
fn next(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn discard(&mut self)
[src]
fn position(&self) -> Position
[src]
fn peek_position(&self) -> Position
[src]
fn byte_offset(&self) -> usize
[src]
fn parse_str<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>>
fn parse_str_raw<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, [u8]>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, [u8]>>
fn ignore_str(&mut self) -> Result<()>
[src]
fn decode_hex_escape(&mut self) -> Result<u16>
[src]
const should_early_return_if_failed: bool
[src]
fn set_failed(&mut self, _failed: &mut bool)
[src]
impl<'a> Read<'a> for StrRead<'a>
[src]
fn next(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn discard(&mut self)
[src]
fn position(&self) -> Position
[src]
fn peek_position(&self) -> Position
[src]
fn byte_offset(&self) -> usize
[src]
fn parse_str<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>>
fn parse_str_raw<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, [u8]>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, [u8]>>
fn ignore_str(&mut self) -> Result<()>
[src]
fn decode_hex_escape(&mut self) -> Result<u16>
[src]
const should_early_return_if_failed: bool
[src]
fn set_failed(&mut self, failed: &mut bool)
[src]
impl<'de, R> Read<'de> for IoRead<R> where
R: Read,
[src]
R: Read,
fn next(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn discard(&mut self)
[src]
fn position(&self) -> Position
[src]
fn peek_position(&self) -> Position
[src]
fn byte_offset(&self) -> usize
[src]
fn parse_str<'s>(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>>
[src]
&'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]>>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, [u8]>>