Trait tuple_list::TupleList[][src]

pub trait TupleList where
    Self: Sized
{ type Tuple: Tuple<TupleList = Self>; const TUPLE_LIST_SIZE: usize; fn into_tuple(self) -> Self::Tuple; }
Expand description

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

Tuple type corresponding to given tuple list.

Associated Constants

Constant representing tuple list size.

Required methods

Converts tuple list into tuple.

Implementors