Skip to main content

IntoList

Trait IntoList 

Source
pub trait IntoList {
    type Output<T: EmptyList>: List;

    // Required method
    fn into_list<T: EmptyList>(self) -> Self::Output<T>;
}
Expand description

Convert into a type-level List, consuming self.

Required Associated Types§

Source

type Output<T: EmptyList>: List

The resulting List type using T as the empty list type family.

Required Methods§

Source

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Convert into a List using T as the empty list type family.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoList for ()

Source§

type Output<T: EmptyList> = <T as List>::Empty

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, L: 'static> IntoList for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static> IntoList for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> IntoList for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> IntoList for (A, B, C, D, E, F, G, H, I)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> IntoList for (A, B, C, D, E, F, G, H)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> IntoList for (A, B, C, D, E, F, G)

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> IntoList for (A, B, C, D, E, F)

Source§

type Output<T: EmptyList> = <<(B, C, D, E, F) as IntoList>::Output<T> as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> IntoList for (A, B, C, D, E)

Source§

type Output<T: EmptyList> = <<(B, C, D, E) as IntoList>::Output<T> as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static, B: 'static, C: 'static, D: 'static> IntoList for (A, B, C, D)

Source§

type Output<T: EmptyList> = <<(B, C, D) as IntoList>::Output<T> as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static, B: 'static, C: 'static> IntoList for (A, B, C)

Source§

type Output<T: EmptyList> = <<(B, C) as IntoList>::Output<T> as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static, B: 'static> IntoList for (A, B)

Source§

type Output<T: EmptyList> = <<(B,) as IntoList>::Output<T> as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Source§

impl<A: 'static> IntoList for (A,)

Source§

type Output<T: EmptyList> = <<T as List>::Empty as List>::Push<A>

Source§

fn into_list<T: EmptyList>(self) -> Self::Output<T>

Implementors§