oni_comb_parser_rs/internal/parser_impl/add_impl.rs
use crate::core::Parser;
use crate::extension::parser::OperatorParser;
use std::fmt::Debug;
use std::ops::Add;
impl<'a, I, A, B> Add<Parser<'a, I, B>> for Parser<'a, I, A>
where
A: Clone + Debug + 'a,
B: Clone + Debug + 'a,
{
type Output = Parser<'a, I, (A, B)>;
fn add(self, rhs: Parser<'a, I, B>) -> Self::Output {
self.and_then(rhs)
}
}