Trait TupleMapperFirst

Source
pub trait TupleMapperFirst<Input, Output, Result>
where Self: Sized,
{ // Required method fn map_first(self, mapper: impl Fn(Input) -> Output) -> Result; }

Required Methods§

Source

fn map_first(self, mapper: impl Fn(Input) -> Output) -> Result

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.

Implementations on Foreign Types§

Source§

impl<S, E, I, O> TupleMapperFirst<I, O, Result<(O, S), E>> for Result<(I, S), E>

Source§

fn map_first(self, mapper: impl Fn(I) -> O) -> Result<(O, S), E>

Implementors§