Struct serde_json::de::SliceRead
[−]
[src]
pub struct SliceRead<'a> { /* fields omitted */ }
JSON input source that reads from a slice of bytes.
Methods
impl<'a> SliceRead<'a>
[src]
Trait Implementations
impl<'a> Read<'a> for SliceRead<'a>
[src]
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<'a, 's, str>>
&'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]>>
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, [u8]>>