DocumentParserExt

Trait DocumentParserExt 

Source
pub trait DocumentParserExt<'doc>: DocumentParser<'doc> + Sized {
    // Provided methods
    fn map<O, F>(self, mapper: F) -> MapParser<Self, F>
       where F: Fn(Self::Output) -> O { ... }
    fn and_then<O, F>(self, mapper: F) -> AndThenParser<Self, F>
       where F: Fn(Self::Output) -> Result<O, Self::Error> { ... }
}

Provided Methods§

Source

fn map<O, F>(self, mapper: F) -> MapParser<Self, F>
where F: Fn(Self::Output) -> O,

Source

fn and_then<O, F>(self, mapper: F) -> AndThenParser<Self, F>
where F: Fn(Self::Output) -> Result<O, Self::Error>,

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<'doc, T> DocumentParserExt<'doc> for T
where T: DocumentParser<'doc>,