TupleMap5

Trait TupleMap5 

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

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

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

Required Associated Types§

Required Methods§

Source

fn map_5<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, C, D, F, G, H, T, U> TupleMap5<T, U> for (A, B, C, D, T, F, G, H)

Source§

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

Source§

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

Source§

impl<A, B, C, D, F, G, T, U> TupleMap5<T, U> for (A, B, C, D, T, F, G)

Source§

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

Source§

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

Source§

impl<A, B, C, D, F, T, U> TupleMap5<T, U> for (A, B, C, D, T, F)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§