TupleMap7

Trait TupleMap7 

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

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

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

Required Associated Types§

Required Methods§

Source

fn map_7<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, E, F, H, T, U> TupleMap7<T, U> for (A, B, C, D, E, F, T, H)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§