Trait grafix_toolbox::math::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>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

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)

§

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)

§

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]

§

type R<B> = [B; N]

source§

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

Implementors§