[][src]Trait lisbeth_tuple_tools::TupleMap2

pub trait TupleMap2<T, U> {
    type Output;
    pub fn map_2<Func>(self, f: Func) -> Self::Output
    where
        Func: FnOnce(T) -> U
; }

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

Associated Types

Loading content...

Required methods

pub fn map_2<Func>(self, f: Func) -> Self::Output where
    Func: FnOnce(T) -> U, 
[src]

Loading content...

Implementations on Foreign Types

impl<A, T, U> TupleMap2<T, U> for (A, T)[src]

type Output = (A, U)

impl<A, C, T, U> TupleMap2<T, U> for (A, T, C)[src]

type Output = (A, U, C)

impl<A, C, D, T, U> TupleMap2<T, U> for (A, T, C, D)[src]

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

impl<A, C, D, E, T, U> TupleMap2<T, U> for (A, T, C, D, E)[src]

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

impl<A, C, D, E, F, T, U> TupleMap2<T, U> for (A, T, C, D, E, F)[src]

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

impl<A, C, D, E, F, G, T, U> TupleMap2<T, U> for (A, T, C, D, E, F, G)[src]

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

impl<A, C, D, E, F, G, H, T, U> TupleMap2<T, U> for (A, T, C, D, E, F, G, H)[src]

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

Loading content...

Implementors

Loading content...