Trait text_parsing::parser::ParserExt

source ·
pub trait ParserExt: Parser + Sized {
    // Provided methods
    fn map<F, U>(self, func: F) -> Map<Self, F, U>
       where F: FnMut(<Self as Parser>::Data) -> U { ... }
    fn pipe_with<I, F>(self, func: F) -> PipedWith<Self, I, F>
       where I: IntoIterator<Item = SourceEvent>,
             F: FnMut(<Self as Parser>::Data) -> I { ... }
    fn partial_pipe_with<I, F>(self, func: F) -> PartialPipedWith<Self, I, F>
       where I: IntoIterator<Item = Local<SourceEvent>>,
             F: FnMut(<Self as Parser>::Data) -> Result<I, <Self as Parser>::Data> { ... }
    fn filter<F: Filter<Self::Data>>(self, filter: F) -> Filtered<Self, F> { ... }
    fn into_breaker(self) -> PipeBreaker<Self> { ... }
}

Provided Methods§

source

fn map<F, U>(self, func: F) -> Map<Self, F, U>
where F: FnMut(<Self as Parser>::Data) -> U,

source

fn pipe_with<I, F>(self, func: F) -> PipedWith<Self, I, F>
where I: IntoIterator<Item = SourceEvent>, F: FnMut(<Self as Parser>::Data) -> I,

source

fn partial_pipe_with<I, F>(self, func: F) -> PartialPipedWith<Self, I, F>
where I: IntoIterator<Item = Local<SourceEvent>>, F: FnMut(<Self as Parser>::Data) -> Result<I, <Self as Parser>::Data>,

source

fn filter<F: Filter<Self::Data>>(self, filter: F) -> Filtered<Self, F>

source

fn into_breaker(self) -> PipeBreaker<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Parser> ParserExt for T