oni_comb_parser_rs::prelude

Trait OffsetParsers

Source
pub trait OffsetParsers: Parsers {
    // Required methods
    fn last_offset<'a, I, A>(parser: Self::P<'a, I, A>) -> Self::P<'a, I, usize>
       where A: Debug + 'a;
    fn next_offset<'a, I, A>(parser: Self::P<'a, I, A>) -> Self::P<'a, I, usize>
       where A: Debug + 'a;
}

Required Methods§

Source

fn last_offset<'a, I, A>(parser: Self::P<'a, I, A>) -> Self::P<'a, I, usize>
where A: Debug + 'a,

Source

fn next_offset<'a, I, A>(parser: Self::P<'a, I, A>) -> Self::P<'a, I, usize>
where A: 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§