[][src]Struct erl_parse::Parser

pub struct Parser<T> { /* fields omitted */ }

Methods

impl<T> Parser<T> where
    T: TokenRead
[src]

pub fn new(reader: T) -> Self[src]

pub fn parse<P: Parse>(&mut self) -> Result<P>[src]

pub fn parse_tail<P: ParseTail>(&mut self, head: P::Head) -> Result<P>[src]

pub fn expect<P: Parse + Expect>(&mut self, expected: &P::Value) -> Result<P>[src]

pub fn expect_any<P: Parse + Expect>(
    &mut self,
    expected: &[&P::Value]
) -> Result<P>
[src]

pub fn peek<F, P>(&mut self, f: F) -> Result<P> where
    F: FnOnce(&mut Self) -> Result<P>, 
[src]

pub fn transaction<F, P>(&mut self, f: F) -> Result<P> where
    F: FnOnce(&mut Self) -> Result<P>, 
[src]

pub fn eos(&mut self) -> Result<bool>[src]

impl<T> Parser<T>[src]

pub fn reader(&self) -> &T[src]

pub fn reader_mut(&mut self) -> &mut T[src]

pub fn into_reader(self) -> T[src]

Trait Implementations

impl<T: Debug> Debug for Parser<T>[src]

Auto Trait Implementations

impl<T> Send for Parser<T> where
    T: Send

impl<T> Sync for Parser<T> where
    T: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]