MapHomoTuple

Trait MapHomoTuple 

Source
pub trait MapHomoTuple<T, U>: HomoTuple<T> + Sized {
    type Output: HomoTuple<U> + Sized;

    // Required method
    fn map_homo_tuple(
        self,
        f: impl Fn(T) -> U,
    ) -> <Self as MapHomoTuple<T, U>>::Output;
}
Expand description

The map adapter for homogeneous tuples

Required Associated Types§

Required Methods§

Source

fn map_homo_tuple( self, f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

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<T, U> MapHomoTuple<T, U> for (T, T)

Source§

type Output = (U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T)

Source§

type Output = (U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T)

Source§

type Output = (U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T)

Source§

type Output = (U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T)

Source§

type Output = (U, U, U, U, U, U, U, U, U, U, U)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T)

Source§

impl<T, U> MapHomoTuple<T, U> for (T,)

Source§

type Output = (U,)

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Source§

impl<T, U> MapHomoTuple<T, U> for ()

Source§

type Output = ()

Source§

fn map_homo_tuple( self, _f: impl Fn(T) -> U, ) -> <Self as MapHomoTuple<T, U>>::Output

Implementors§