Trait yarpl::Consume[][src]

pub trait Consume {
    type Target;
    fn consume(parser: &mut Parser) -> Result<Self::Target>;
}

Returns Self::Target when parsed by Parser::feed.

Associated Types

Loading content...

Required methods

fn consume(parser: &mut Parser) -> Result<Self::Target>[src]

Loading content...

Implementors

impl<T: Consume + Default + Copy> Consume for Not<T>[src]

type Target = ()

impl<T: Consume> Consume for Maybe<T>[src]

type Target = Option<T::Target>

impl<T: Consume> Consume for Must<T>[src]

type Target = ()

impl<T: Consume, const RANGE: Range<usize>> Consume for Many<T, RANGE>[src]

type Target = Vec<T::Target>

impl<const STRING: &'static str> Consume for Only<STRING>[src]

type Target = &'static str

Loading content...