oni_comb_parser_rs/extension/parser/
offset_combinator.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::extension::parser::OperatorParser;
use std::fmt::Debug;

pub trait OffsetParser<'a>: OperatorParser<'a> {
  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;
}