Trait SourceExt

Source
pub trait SourceExt: Source + Sized {
    // Provided methods
    fn pipe<P>(self, parser: P) -> Pipe<Self, P>
       where P: PipeParser { ... }
    fn filter_char<F>(self, filter: F) -> Filtered<Self, F>
       where F: FnMut(char) -> Option<char> { ... }
    fn map_char<M>(self, mapper: M) -> MapChar<Self, M> { ... }
    fn into_separator(self) -> IntoSeparator<Self> { ... }
    fn merge_separators(self) -> MergeSeparator<Self> { ... }
    fn chain<S: Source>(self, chained: S) -> Chain<Self, S> { ... }
    fn try_map<M>(self, mapper: M) -> Map<Self, M> { ... }
}

Provided Methods§

Source

fn pipe<P>(self, parser: P) -> Pipe<Self, P>
where P: PipeParser,

Source

fn filter_char<F>(self, filter: F) -> Filtered<Self, F>
where F: FnMut(char) -> Option<char>,

Source

fn map_char<M>(self, mapper: M) -> MapChar<Self, M>

Source

fn into_separator(self) -> IntoSeparator<Self>

Source

fn merge_separators(self) -> MergeSeparator<Self>

Source

fn chain<S: Source>(self, chained: S) -> Chain<Self, S>

Source

fn try_map<M>(self, mapper: M) -> Map<Self, M>

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<T: Source> SourceExt for T