Skip to main content

IntoTupleList

Trait IntoTupleList 

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.

§Examples

See the module tutorial.

Required Associated Types§

type Output: List

The resulting list type.

Required Methods§

fn into_tuple_list(self) -> Self::Output

Moves source fields into a List where (H, T) models a cons cell.

  • Complexity: O(n) field moves for n source fields, without allocation.
§Examples

See IntoTupleList.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

§

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

§

type Output = <T as IntoList>::Output<()>