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 map_eof<I, F>(self, func: F) -> MapEof<Self, I, F>
where I: IntoIterator<Item = Local<ParserEvent<<Self as Parser>::Data>>>,
F: FnMut(Vec<Local<SourceEvent>>) -> Result<I, Error> { ... }
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§
fn map<F, U>(self, func: F) -> Map<Self, F, U>
fn map_eof<I, F>(self, func: F) -> MapEof<Self, I, F>where
I: IntoIterator<Item = Local<ParserEvent<<Self as Parser>::Data>>>,
F: FnMut(Vec<Local<SourceEvent>>) -> Result<I, Error>,
fn pipe_with<I, F>(self, func: F) -> PipedWith<Self, I, F>
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>
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.