TupleMap3

Trait TupleMap3 

Source
pub trait TupleMap3<T, U> {
    type Output;

    // Required method
    fn map_3<Func>(self, f: Func) -> Self::Output
       where Func: FnOnce(T) -> U;
}
Expand description

Allows to map the third element of a tuple to another type.

Required Associated Types§

Required Methods§

Source

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

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<A, B, D, E, F, G, H, T, U> TupleMap3<T, U> for (A, B, T, D, E, F, G, H)

Source§

type Output = (A, B, U, D, E, F, G, H)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Source§

impl<A, B, D, E, F, G, T, U> TupleMap3<T, U> for (A, B, T, D, E, F, G)

Source§

type Output = (A, B, U, D, E, F, G)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Source§

impl<A, B, D, E, F, T, U> TupleMap3<T, U> for (A, B, T, D, E, F)

Source§

type Output = (A, B, U, D, E, F)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Source§

impl<A, B, D, E, T, U> TupleMap3<T, U> for (A, B, T, D, E)

Source§

type Output = (A, B, U, D, E)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Source§

impl<A, B, D, T, U> TupleMap3<T, U> for (A, B, T, D)

Source§

type Output = (A, B, U, D)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Source§

impl<A, B, T, U> TupleMap3<T, U> for (A, B, T)

Source§

type Output = (A, B, U)

Source§

fn map_3<Func>(self, f: Func) -> Self::Output
where Func: FnOnce(T) -> U,

Implementors§