[][src]Trait lisbeth_tuple_tools::TupleMap1

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

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

Associated Types

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

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

type Output = (U,)

impl<B, T, U> TupleMap1<T, U> for (T, B)[src]

type Output = (U, B)

impl<B, C, T, U> TupleMap1<T, U> for (T, B, C)[src]

type Output = (U, B, C)

impl<B, C, D, T, U> TupleMap1<T, U> for (T, B, C, D)[src]

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

impl<B, C, D, E, T, U> TupleMap1<T, U> for (T, B, C, D, E)[src]

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

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

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

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

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

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

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

Loading content...

Implementors

Loading content...