UnCons

Trait UnCons 

Source
pub trait UnCons<H> {
    type NextIt;
    type Tail: UnCons<Self::NextIt>;

    // Required method
    fn uncons(self) -> (Option<H>, Self::Tail);
}

Required Associated Types§

Required Methods§

Source

fn uncons(self) -> (Option<H>, Self::Tail)

Implementations on Foreign Types§

Source§

impl<T1> UnCons<T1> for (T1,)

Source§

type NextIt = T1

Source§

type Tail = ()

Source§

fn uncons(self) -> (Option<T1>, Self::Tail)

Source§

impl<T1, T2> UnCons<T1> for (T1, T2)

Source§

type NextIt = T2

Source§

type Tail = (T2,)

Source§

fn uncons(self) -> (Option<T1>, Self::Tail)

Source§

impl<T1, T2, T3> UnCons<T1> for (T1, T2, T3)

Source§

type NextIt = T2

Source§

type Tail = (T2, T3)

Source§

fn uncons(self) -> (Option<T1>, Self::Tail)

Source§

impl<T1, T2, T3, T4> UnCons<T1> for (T1, T2, T3, T4)

Source§

type NextIt = T2

Source§

type Tail = (T2, T3, T4)

Source§

fn uncons(self) -> (Option<T1>, Self::Tail)

Source§

impl<T> UnCons<T> for ()

Source§

type NextIt = T

Source§

type Tail = ()

Source§

fn uncons(self) -> (Option<T>, Self::Tail)

Implementors§