oni_comb_parser_rs/internal/parser_impl/
offset_parser_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::core::Parser;
use crate::extension::parser::OffsetParser;
use crate::extension::parsers::OffsetParsers;
use crate::internal::ParsersImpl;
use std::fmt::Debug;

impl<'a, I, A> OffsetParser<'a> for Parser<'a, I, A> {
  fn last_offset(self) -> Self::P<'a, Self::Input, usize>
  where
    Self::Output: Debug + 'a, {
    ParsersImpl::last_offset(self)
  }

  fn next_offset(self) -> Self::P<'a, Self::Input, usize>
  where
    Self::Output: Debug + 'a, {
    ParsersImpl::next_offset(self)
  }
}