Parser

Trait Parser 

Source
pub trait Parser<'a, T, O, F>: FnOnce(InputRef<'a, T>) -> F
where T: 'a, F: Future<Output = O> + 'a,
{ }
Expand description

Parser trait In this crate, a parser is defined as a function that takes an InputRef and returns a Future.

Implementors§

Source§

impl<'a, T, O, F, P> Parser<'a, T, O, F> for P
where T: 'a, P: FnOnce(InputRef<'a, T>) -> F, F: Future<Output = O> + 'a,