[−][src]Struct erl_parse::TokenReader
Methods
impl<T, E> TokenReader<T, E> where
T: Iterator<Item = Result<LexicalToken, E>> + Preprocessor,
Error: From<E>,
[src]
T: Iterator<Item = Result<LexicalToken, E>> + Preprocessor,
Error: From<E>,
pub fn new(inner: T) -> Self
[src]
pub fn inner(&self) -> &T
[src]
pub fn inner_mut(&mut self) -> &mut T
[src]
pub fn into_inner(self) -> T
[src]
Trait Implementations
impl<T, E> Preprocessor for TokenReader<T, E> where
T: Preprocessor,
[src]
T: Preprocessor,
fn define_macro(&mut self, name: &str, replacement: Vec<LexicalToken>)
[src]
fn undef_macro(&mut self, name: &str)
[src]
impl<T, E> TokenRead for TokenReader<T, E> where
T: Iterator<Item = Result<LexicalToken, E>> + Preprocessor,
Error: From<E>,
[src]
T: Iterator<Item = Result<LexicalToken, E>> + Preprocessor,
Error: From<E>,
fn try_read_token(&mut self) -> Result<Option<LexicalToken>>
[src]
fn unread_token(&mut self, token: LexicalToken)
[src]
fn read_token(&mut self) -> Result<LexicalToken>
[src]
impl<T: Debug, E: Debug> Debug for TokenReader<T, E>
[src]
Auto Trait Implementations
impl<T, E> Send for TokenReader<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> Sync for TokenReader<T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,