oni_comb_parser_rs::prelude

Trait SkipParser

Source
pub trait SkipParser<'a>: ParserRunner<'a> {
    // Required methods
    fn skip_left<B>(
        self,
        other: Self::P<'a, Self::Input, B>,
    ) -> Self::P<'a, Self::Input, B>
       where Self::Output: Clone + Debug + 'a,
             B: Clone + Debug + 'a;
    fn skip_right<B>(
        self,
        other: Self::P<'a, Self::Input, B>,
    ) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Output: Clone + Debug + 'a,
             B: Clone + Debug + 'a;
    fn surround<B, C>(
        self,
        left_parser: Self::P<'a, Self::Input, B>,
        right_parser: Self::P<'a, Self::Input, C>,
    ) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Output: Clone + Debug + 'a,
             B: Clone + Debug + 'a,
             C: Clone + Debug + 'a;
}

Required Methods§

Source

fn skip_left<B>( self, other: Self::P<'a, Self::Input, B>, ) -> Self::P<'a, Self::Input, B>
where Self::Output: Clone + Debug + 'a, B: Clone + Debug + 'a,

Source

fn skip_right<B>( self, other: Self::P<'a, Self::Input, B>, ) -> Self::P<'a, Self::Input, Self::Output>
where Self::Output: Clone + Debug + 'a, B: Clone + Debug + 'a,

Source

fn surround<B, C>( self, left_parser: Self::P<'a, Self::Input, B>, right_parser: Self::P<'a, Self::Input, C>, ) -> Self::P<'a, Self::Input, Self::Output>
where Self::Output: Clone + Debug + 'a, B: Clone + Debug + 'a, C: Clone + 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> SkipParser<'a> for Parser<'a, I, A>