oni_comb_parser_rs/internal/parser_impl/
bitor_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::core::Parser;
use crate::extension::parser::OperatorParser;
use std::fmt::Debug;
use std::ops::BitOr;

impl<'a, I, A> BitOr for Parser<'a, I, A>
where
  A: Debug + 'a,
{
  type Output = Self;

  fn bitor(self, rhs: Parser<'a, I, A>) -> Self::Output {
    self.or(rhs)
  }
}