oni_comb_parser_rs::prelude

Trait OffsetParser

Source
pub trait OffsetParser<'a>: OperatorParser<'a> {
    // Required methods
    fn last_offset(self) -> Self::P<'a, Self::Input, usize>
       where Self::Output: Debug + 'a;
    fn next_offset(self) -> Self::P<'a, Self::Input, usize>
       where Self::Output: Debug + 'a;
}

Required Methods§

Source

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

Source

fn next_offset(self) -> Self::P<'a, Self::Input, usize>
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> OffsetParser<'a> for Parser<'a, I, A>