oni_comb_parser_rs/internal/parser_impl/
sub_parser_impl.rs

1use crate::core::Parser;
2use crate::extension::parser::SkipParser;
3use std::fmt::Debug;
4use std::ops::Sub;
5
6impl<'a, I, A, B> Sub<Parser<'a, I, B>> for Parser<'a, I, A>
7where
8  A: Clone + Debug + 'a,
9  B: Clone + Debug + 'a,
10{
11  type Output = Self;
12
13  fn sub(self, rhs: Parser<'a, I, B>) -> Self::Output {
14    self.skip_right(rhs)
15  }
16}