Tuple

Trait Tuple 

Source
pub trait Tuple {
    type Arity: Arity;
}
Expand description

A trait implemented for all tuple types up to arity 6 (or 12 with feature max-arity-12).

Required Associated Types§

Source

type Arity: Arity

Type-level representation of this tuple’s arity.

For example:

  • () -> A0
  • (T,) -> A1
  • (T, U) -> A2

Implementations on Foreign Types§

Source§

impl Tuple for ()

Source§

impl<T1> Tuple for (T1,)

Source§

impl<T1, T2> Tuple for (T1, T2)

Source§

impl<T1, T2, T3> Tuple for (T1, T2, T3)

Source§

impl<T1, T2, T3, T4> Tuple for (T1, T2, T3, T4)

Source§

impl<T1, T2, T3, T4, T5> Tuple for (T1, T2, T3, T4, T5)

Source§

impl<T1, T2, T3, T4, T5, T6> Tuple for (T1, T2, T3, T4, T5, T6)

Implementors§