oni_comb_parser_rs/extension/parser/
conversion_parser.rs

1
2
3
4
5
6
7
8
9
10
11
use crate::extension::parser::OperatorParser;
use std::fmt::Debug;

pub trait ConversionParser<'a>: OperatorParser<'a> {
  fn map_res<B, E, F>(self, f: F) -> Self::P<'a, Self::Input, B>
  where
    F: Fn(Self::Output) -> Result<B, E> + 'a,
    E: Debug,
    Self::Output: Debug + 'a,
    B: Debug + 'a;
}