pub trait Parser<It>where
It: InputIteratorTrait,{
type Output: Tuple;
// Required method
fn parse(&self, it: It) -> ParseResult<Self::Output, It>;
// Provided method
fn match_pattern(&self, it: It) -> ParseResult<(), It> { ... }
}Expand description
Parser trait. Every parser object must implement this trait.
for crate::parse(), crate::match_pattern() functions