oni_comb_parser_rs::prelude

Trait PeekParser

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

Required Methods§

Source

fn peek(self) -> Self::P<'a, Self::Input, Self::Output>
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> PeekParser<'a> for Parser<'a, I, A>