Read

Trait Read 

Source
pub trait Read<'de>: Sealed {
    // Provided method
    fn parse_elisp_char(&mut self, scratch: &mut Vec<u8>) -> Result<char, Error> { ... }
}
Expand description

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§

Source

fn parse_elisp_char(&mut self, scratch: &mut Vec<u8>) -> Result<char, Error>

Parses an Emacs Lisp character constant.

Implementors§

Source§

impl<'a> Read<'a> for SliceRead<'a>

Source§

impl<'a> Read<'a> for StrRead<'a>

Source§

impl<'de, R> Read<'de> for IoRead<R>
where R: Read,