TupleAppend

Trait TupleAppend 

Source
pub trait TupleAppend<T> {
    type Appended;

    // Required method
    fn append(self, other: T) -> Self::Appended;
}
Expand description

Allows to append an element at the end of a tuple.

The generic type parameter T represents the type to be appended. It may be removed in the future, when GAT reach stable rust.

Required Associated Types§

Source

type Appended

The type that is returned.

Required Methods§

Source

fn append(self, other: T) -> Self::Appended

The appending function.

Implementations on Foreign Types§

Source§

impl<A> TupleAppend<A> for ()

Source§

type Appended = (A,)

Source§

fn append(self, other: A) -> Self::Appended

Source§

impl<A, B> TupleAppend<B> for (A,)

Source§

type Appended = (A, B)

Source§

fn append(self, other: B) -> Self::Appended

Source§

impl<A, B, C> TupleAppend<C> for (A, B)

Source§

type Appended = (A, B, C)

Source§

fn append(self, other: C) -> Self::Appended

Source§

impl<A, B, C, D> TupleAppend<D> for (A, B, C)

Source§

type Appended = (A, B, C, D)

Source§

fn append(self, other: D) -> Self::Appended

Source§

impl<A, B, C, D, E> TupleAppend<E> for (A, B, C, D)

Source§

type Appended = (A, B, C, D, E)

Source§

fn append(self, other: E) -> Self::Appended

Source§

impl<A, B, C, D, E, F> TupleAppend<F> for (A, B, C, D, E)

Source§

impl<A, B, C, D, E, F, G> TupleAppend<G> for (A, B, C, D, E, F)

Source§

impl<A, B, C, D, E, F, G, H> TupleAppend<H> for (A, B, C, D, E, F, G)

Implementors§