Trait TupleApply

Source
pub trait TupleApply<RA, A>: Sized {
    type R<B>;

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

Required Associated Types§

Source

type R<B>

Required Methods§

Source

fn apply<B, F: Fn(A, A) -> B>(self, r: RA, 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<RA, A> TupleApply<RA, A> for (A, A)
where RA: Tuple2<A>,

Source§

type R<B> = (B, B)

Source§

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

Source§

impl<RA, A> TupleApply<RA, A> for (A, A, A)
where RA: Tuple3<A>,

Source§

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

Source§

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

Source§

impl<RA, A> TupleApply<RA, A> for (A, A, A, A)
where RA: Tuple4<A>,

Source§

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

Source§

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

Source§

impl<RA, A, const N: usize> TupleApply<RA, A> for [A; N]
where RA: TupleA<A, N>,

Source§

type R<B> = [B; N]

Source§

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

Implementors§