Skip to main content

MapParserResult

Trait MapParserResult 

Source
pub trait MapParserResult<'a, R> {
    // Required methods
    fn map_error<F>(self, callback: F) -> ParserResult<'a, R>
       where F: FnMut(SourceError) -> SourceError;
    fn map_result<F, RX>(self, callback: F) -> ParserResult<'a, RX>
       where F: FnMut(R) -> RX;
}

Required Methods§

Source

fn map_error<F>(self, callback: F) -> ParserResult<'a, R>

Source

fn map_result<F, RX>(self, callback: F) -> ParserResult<'a, RX>
where F: FnMut(R) -> RX,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, R> MapParserResult<'a, R> for ParserResult<'a, R>