Trait TupleMap

Source
pub trait TupleMap<A>: Sized {
    type R<B>;

    // Required method
    fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>;
}

Required Associated Types§

Source

type R<B>

Required Methods§

Source

fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>

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> TupleMap<A> for (A, A)

Source§

type R<B> = (B, B)

Source§

fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>

Source§

impl<A> TupleMap<A> for (A, A, A)

Source§

type R<B> = (B, B, B)

Source§

fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>

Source§

impl<A> TupleMap<A> for (A, A, A, A)

Source§

type R<B> = (B, B, B, B)

Source§

fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>

Source§

impl<A, const N: usize> TupleMap<A> for [A; N]

Source§

type R<B> = [B; N]

Source§

fn map<B, F: Fn(A) -> B>(self, op: F) -> Self::R<B>

Implementors§