Trait MapParsed

Source
pub trait MapParsed<T, R> {
    type Output: Clone + Debug;

    // Required method
    fn map_parsed<F>(self, f: F) -> Self::Output
       where F: FnOnce(T) -> R;
}
Expand description

Allows to map Self over some parsed.

Required Associated Types§

Required Methods§

Source

fn map_parsed<F>(self, f: F) -> Self::Output
where F: FnOnce(T) -> R,

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: Clone + Debug, R: Clone + Debug, N: Clone + Debug> MapParsed<T, R> for UnitResult<T, N>