oni_comb_parser_rs/core/
parser_functor.rs

1use crate::core::parser_pure::ParserPure;
2
3pub trait ParserFunctor<'a>: ParserPure<'a> {
4  /// Returns a [Parser] that transforms the analysis results.<br/>
5  /// 解析結果を変換する[Parser]を返す。
6  fn map<B, F>(self, f: F) -> Self::P<'a, Self::Input, B>
7  where
8    F: Fn(Self::Output) -> B + 'a,
9    Self::Input: 'a,
10    Self::Output: 'a,
11    B: 'a;
12}