Trait TupleMapperSecond

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

Required Methods§

Source

fn map_second(self, mapper: impl FnOnce(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> TupleMapperSecond<I, O, Result<(S, O), E>> for Result<(S, I), E>

Source§

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

Implementors§