oni_comb_parser_rs::prelude

Trait DiscardParser

Source
pub trait DiscardParser<'a>: ParserRunner<'a> {
    // Required method
    fn discard(self) -> Self::P<'a, Self::Input, ()>
       where Self::Output: Debug + 'a;
}

Required Methods§

Source

fn discard(self) -> Self::P<'a, Self::Input, ()>
where Self::Output: Debug + 'a,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, I, A> DiscardParser<'a> for Parser<'a, I, A>