oni_comb_parser_rs::prelude

Trait ConversionParser

Source
pub trait ConversionParser<'a>: OperatorParser<'a> {
    // Required method
    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;
}

Required Methods§

Source

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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, I, A> ConversionParser<'a> for Parser<'a, I, A>