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
Associated Constants
const TUPLE_LIST_SIZE: usize
const TUPLE_LIST_SIZE: usize
Constant representing tuple list size.
Required methods
fn into_tuple(self) -> Self::Tuple
fn into_tuple(self) -> Self::Tuple
Converts tuple list into tuple.
Implementors
impl<T1, T2, T3, T4, T5, T6, T7, T8> TupleList for (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, ())))))))))
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TupleList for (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, ())))))))))))