Trait rusty_parser::Parser

source ·
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 all parsers must implement this trait

Required Associated Types§

source

type Output: Tuple

Required Methods§

source

fn parse(&self, it: It) -> ParseResult<Self::Output, It>

Provided Methods§

source

fn match_pattern(&self, it: It) -> ParseResult<(), It>

Implementors§

source§

impl<'a, Output> Parser<Chars<'a>> for DynBoxChars<Output>
where Output: Tuple,

§

type Output = Output

source§

impl<'a, Output, T> Parser<Iter<'a, T>> for DynBoxSlice<Output, T>
where Output: Tuple,

§

type Output = Output

source§

impl<Output, CharType, It> Parser<It> for DictBTreeParser<Output, CharType>
where Output: Clone + Tuple, CharType: Ord, It: InputIteratorTrait + Iterator<Item = CharType> + Clone,

§

type Output = Output

source§

impl<Output, CharType, It> Parser<It> for DictHashMapParser<Output, CharType>
where It: InputIteratorTrait + Iterator<Item = CharType> + Clone, CharType: Hash + Eq, Output: Clone + Tuple,

§

type Output = Output

source§

impl<ParserType, It> Parser<It> for RcedParser<ParserType>
where It: InputIteratorTrait, ParserType: Parser<It>,

§

type Output = <ParserType as Parser<It>>::Output

source§

impl<ParserType, It> Parser<It> for RefCelledParser<ParserType>
where It: InputIteratorTrait, ParserType: Parser<It>,

§

type Output = <ParserType as Parser<It>>::Output