oni_comb_parser_rs/internal/parser_impl/
not_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::core::Parser;
use crate::extension::parsers::OperatorParsers;
use crate::internal::ParsersImpl;
use std::fmt::Debug;
use std::ops::Not;

impl<'a, I, A> Not for Parser<'a, I, A>
where
  A: Debug + 'a,
{
  type Output = Parser<'a, I, ()>;

  fn not(self) -> Self::Output {
    ParsersImpl::not(self)
  }
}