[−][src]Trait serde_lexpr::parse::Read
Trait used by the parser for iterating over input.
This trait 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
lexpr
.
Provided methods
fn parse_elisp_char(&mut self, scratch: &mut Vec<u8>) -> Result<char, Error>
Parses an Emacs Lisp character constant.
Implementors
impl<'a> Read<'a> for SliceRead<'a>
[src]
fn next(&mut self) -> Result<Option<u8>, Error>
[src]
fn peek(&mut self) -> Result<Option<u8>, Error>
[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_r6rs_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
fn parse_elisp_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'a, 's, [u8]>, Reference<'a, 's, str>>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'a, 's, [u8]>, Reference<'a, 's, str>>, Error>
fn parse_symbol(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
impl<'a> Read<'a> for StrRead<'a>
[src]
fn next(&mut self) -> Result<Option<u8>, Error>
[src]
fn peek(&mut self) -> Result<Option<u8>, Error>
[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_r6rs_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
fn parse_elisp_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'a, 's, [u8]>, Reference<'a, 's, str>>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'a, 's, [u8]>, Reference<'a, 's, str>>, Error>
fn parse_symbol(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'a, 's, str>, Error>
impl<'de, R> Read<'de> for IoRead<R> where
R: Read,
[src]
R: Read,
fn next(&mut self) -> Result<Option<u8>, Error>
[src]
fn peek(&mut self) -> Result<Option<u8>, Error>
[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_r6rs_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>, Error>
fn parse_elisp_str(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'de, 's, [u8]>, Reference<'de, 's, str>>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<ElispStr<Reference<'de, 's, [u8]>, Reference<'de, 's, str>>, Error>
fn parse_symbol(
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>, Error>
[src]
&'s mut self,
scratch: &'s mut Vec<u8>
) -> Result<Reference<'de, 's, str>, Error>