Trait Pluck

Source
pub trait Pluck {
    type Head;
    type Tail;

    // Required method
    fn pluck(self) -> (Self::Head, Self::Tail);
}
Expand description

Helper trait to allow Plucking heads of tuples.

This is the inverse of Prepend

Required Associated Types§

Required Methods§

Source

fn pluck(self) -> (Self::Head, Self::Tail)

Split the tuple into the head (Head) and the rest part (Tail)

Implementations on Foreign Types§

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6, T7)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T> Pluck for (T, T0, T1, T2, T3, T4, T5, T6)

Source§

impl<T0, T1, T2, T3, T4, T5, T> Pluck for (T, T0, T1, T2, T3, T4, T5)

Source§

type Head = T

Source§

type Tail = (T0, T1, T2, T3, T4, T5)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T0, T1, T2, T3, T4, T> Pluck for (T, T0, T1, T2, T3, T4)

Source§

type Head = T

Source§

type Tail = (T0, T1, T2, T3, T4)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T0, T1, T2, T3, T> Pluck for (T, T0, T1, T2, T3)

Source§

type Head = T

Source§

type Tail = (T0, T1, T2, T3)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T0, T1, T2, T> Pluck for (T, T0, T1, T2)

Source§

type Head = T

Source§

type Tail = (T0, T1, T2)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T0, T1, T> Pluck for (T, T0, T1)

Source§

type Head = T

Source§

type Tail = (T0, T1)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T0, T> Pluck for (T, T0)

Source§

type Head = T

Source§

type Tail = (T0,)

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Source§

impl<T> Pluck for (T,)

Source§

type Head = T

Source§

type Tail = ()

Source§

fn pluck(self) -> (Self::Head, Self::Tail)

Implementors§