pub trait Tuplewhere
Self: Sized,{
type TupleList: TupleList<Tuple = Self>;
// Required method
fn into_tuple_list(self) -> Self::TupleList;
}
Expand description
Trait providing conversion from tuple into tuple list.
Generic trait implemented for all tuples (up to 12 elements).
Please note that Tuple
trait does not have
TUPLE_SIZE
constant like TupleList
does.
This is intentional, in order to avoid accidental use of it for tuple lists.
You can still get tuple size as Tuple::TupleList::TUPLE_LIST_SIZE
.
§Examples
Required Associated Types§
Required Methods§
Sourcefn into_tuple_list(self) -> Self::TupleList
fn into_tuple_list(self) -> Self::TupleList
Converts tuple into tuple list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.