oni_comb_parser_rs/internal/parser_impl/
parser_functor_impl.rs

1use crate::core::{Parser, ParserFunctor, Parsers};
2use crate::internal::ParsersImpl;
3
4impl<'a, I, A> ParserFunctor<'a> for Parser<'a, I, A> {
5  fn map<B, F>(self, f: F) -> Self::P<'a, Self::Input, B>
6  where
7    F: Fn(Self::Output) -> B + 'a,
8    Self::Input: 'a,
9    Self::Output: 'a,
10    B: 'a, {
11    ParsersImpl::map(self, f)
12  }
13}