oni_comb_parser_rs/extension/parsers/
offset_parsers.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::core::Parsers;
use std::fmt::Debug;

pub trait OffsetParsers: Parsers {
  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;
}