[][src]Trait tuple_list::TupleList

pub trait TupleList {
    type Tuple: Tuple;

    const TUPLE_LIST_SIZE: usize;

    fn into_tuple(self) -> Self::Tuple;
}

Trait providing conversion from tuple list into tuple.

Generic trait implemented for all tuple lists (up to 12 elements).

Examples

use crate::tuple_list::tuple_list;
use crate::tuple_list::TupleList;
 
let tuple_list = tuple_list!(1, false, "abc");
 
assert_eq!(
    tuple_list.into_tuple(),
    (1, false, "abc"),
);
Run

Associated Types

type Tuple: Tuple

Tuple type corresponding to given tuple list.

Loading content...

Associated Constants

const TUPLE_LIST_SIZE: usize

Constant representing tuple list size.

Loading content...

Required methods

fn into_tuple(self) -> Self::Tuple

Converts tuple list into tuple.

Loading content...

Implementations on Foreign Types

impl TupleList for ()[src]

impl<T1> TupleList for (T1, ())[src]

type Tuple = (T1,)

impl<T1, T2> TupleList for (T1, (T2, ()))[src]

type Tuple = (T1, T2)

impl<T1, T2, T3> TupleList for (T1, (T2, (T3, ())))[src]

type Tuple = (T1, T2, T3)

impl<T1, T2, T3, T4> TupleList for (T1, (T2, (T3, (T4, ()))))[src]

type Tuple = (T1, T2, T3, T4)

impl<T1, T2, T3, T4, T5> TupleList for (T1, (T2, (T3, (T4, (T5, ())))))[src]

type Tuple = (T1, T2, T3, T4, T5)

impl<T1, T2, T3, T4, T5, T6> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, ()))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6)

impl<T1, T2, T3, T4, T5, T6, T7> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, ())))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7)

impl<T1, T2, T3, T4, T5, T6, T7, T8> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, ()))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8)

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, ())))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9)

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, ()))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, ())))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TupleList for (T1, (T2, (T3, (T4, (T5, (T6, (T7, (T8, (T9, (T10, (T11, (T12, ()))))))))))))[src]

type Tuple = (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Loading content...

Implementors

Loading content...