Skip to main content

IntoTupleList

Trait IntoTupleList 

Source
pub trait IntoTupleList {
    type Output: List;

    // Required method
    fn into_tuple_list(self) -> Self::Output;
}
Expand description

Converts tuples into a List representation where () is empty and (H, T) is a cons cell.

Required Associated Types§

Source

type Output: List

The resulting list type.

Required Methods§

Source

fn into_tuple_list(self) -> Self::Output

Convert into a List where (H, T) models a cons cell.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> IntoTupleList for T
where T: IntoList,