Skip to main content

Tuple2Map1Result

Trait Tuple2Map1Result 

Source
pub trait Tuple2Map1Result<E, T0, T1> {
    // Required method
    fn map1<U>(self, f: impl FnOnce(T1) -> U) -> Result<(T0, U), E>;
}
Expand description

Mapping .1 for Tuple2

Required Methods§

Source

fn map1<U>(self, f: impl FnOnce(T1) -> U) -> Result<(T0, U), E>

Mapping .1 for Tuple2

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<E, T0, T1> Tuple2Map1Result<E, T0, T1> for Result<(T0, T1), E>

Source§

fn map1<U>(self, f: impl FnOnce(T1) -> U) -> Result<(T0, U), E>

Implementors§