[][src]Trait alder::Parser

pub trait Parser<T = Node> {
    fn parse(&self, state: &mut State) -> T;

    fn map<F>(self, f: F) -> Map<Self, F, T>
    where
        Self: Sized
, { ... }
fn boxed<'a>(self) -> Box<dyn Parser<T> + 'a>
    where
        Self: 'a + Sized
, { ... }
fn arc<'a>(self) -> Arc<dyn Parser<T> + 'a>
    where
        Self: 'a + Sized
, { ... } }

Required methods

fn parse(&self, state: &mut State) -> T

Loading content...

Provided methods

fn map<F>(self, f: F) -> Map<Self, F, T> where
    Self: Sized

fn boxed<'a>(self) -> Box<dyn Parser<T> + 'a> where
    Self: 'a + Sized

fn arc<'a>(self) -> Arc<dyn Parser<T> + 'a> where
    Self: 'a + Sized

Loading content...

Implementations on Foreign Types

impl Parser<Node> for &'static str[src]

impl Parser<Span> for &'static str[src]

Loading content...

Implementors

impl<F, T> Parser<T> for F where
    F: Fn(&mut State) -> T, 
[src]

impl<P> Parser<Node> for AsExtra<P> where
    P: Parser<Node>, 
[src]

impl<P: Parser> Parser<Node> for WithExtra<P>[src]

impl<T, O, P, F> Parser<O> for Map<P, F, T> where
    P: Parser<T>,
    F: Fn(T) -> O, 
[src]

Loading content...