[][src]Trait tuple_utils::Split

pub trait Split {
    type Left;
    type Right;
    fn split(self) -> (Self::Left, Self::Right);
}

Tries to split a tuple into two tuples if the tuple is odd sized the Right side will contain the extra element

Associated Types

type Left

type Right

Loading content...

Required methods

fn split(self) -> (Self::Left, Self::Right)

Loading content...

Implementations on Foreign Types

impl Split for ()[src]

type Left = ()

type Right = ()

impl<TLast> Split for (TLast,)[src]

type Left = ()

type Right = (TLast,)

impl<T0, T1> Split for (T0, T1)[src]

type Left = (T0,)

type Right = (T1,)

impl<T0, T1, TLast> Split for (T0, T1, TLast)[src]

type Left = (T0,)

type Right = (T1, TLast)

impl<T0, T2, T1, T3> Split for (T0, T2, T1, T3)[src]

type Left = (T0, T2)

type Right = (T1, T3)

impl<T0, T2, T1, T3, TLast> Split for (T0, T2, T1, T3, TLast)[src]

type Left = (T0, T2)

type Right = (T1, T3, TLast)

impl<T0, T2, T4, T1, T3, T5> Split for (T0, T2, T4, T1, T3, T5)[src]

type Left = (T0, T2, T4)

type Right = (T1, T3, T5)

impl<T0, T2, T4, T1, T3, T5, TLast> Split for (T0, T2, T4, T1, T3, T5, TLast)[src]

type Left = (T0, T2, T4)

type Right = (T1, T3, T5, TLast)

impl<T0, T2, T4, T6, T1, T3, T5, T7> Split for (T0, T2, T4, T6, T1, T3, T5, T7)[src]

type Left = (T0, T2, T4, T6)

type Right = (T1, T3, T5, T7)

impl<T0, T2, T4, T6, T1, T3, T5, T7, TLast> Split for (T0, T2, T4, T6, T1, T3, T5, T7, TLast)[src]

type Left = (T0, T2, T4, T6)

type Right = (T1, T3, T5, T7, TLast)

impl<T0, T2, T4, T6, T8, T1, T3, T5, T7, T9> Split for (T0, T2, T4, T6, T8, T1, T3, T5, T7, T9)[src]

type Left = (T0, T2, T4, T6, T8)

type Right = (T1, T3, T5, T7, T9)

impl<T0, T2, T4, T6, T8, T1, T3, T5, T7, T9, TLast> Split for (T0, T2, T4, T6, T8, T1, T3, T5, T7, T9, TLast)[src]

type Left = (T0, T2, T4, T6, T8)

type Right = (T1, T3, T5, T7, T9, TLast)

impl<T0, T2, T4, T6, T8, T10, T1, T3, T5, T7, T9, T11> Split for (T0, T2, T4, T6, T8, T10, T1, T3, T5, T7, T9, T11)[src]

type Left = (T0, T2, T4, T6, T8, T10)

type Right = (T1, T3, T5, T7, T9, T11)

impl<T0, T2, T4, T6, T8, T10, T1, T3, T5, T7, T9, T11, TLast> Split for (T0, T2, T4, T6, T8, T10, T1, T3, T5, T7, T9, T11, TLast)[src]

type Left = (T0, T2, T4, T6, T8, T10)

type Right = (T1, T3, T5, T7, T9, T11, TLast)

impl<T0, T2, T4, T6, T8, T10, T12, T1, T3, T5, T7, T9, T11, T13> Split for (T0, T2, T4, T6, T8, T10, T12, T1, T3, T5, T7, T9, T11, T13)[src]

type Left = (T0, T2, T4, T6, T8, T10, T12)

type Right = (T1, T3, T5, T7, T9, T11, T13)

impl<T0, T2, T4, T6, T8, T10, T12, T1, T3, T5, T7, T9, T11, T13, TLast> Split for (T0, T2, T4, T6, T8, T10, T12, T1, T3, T5, T7, T9, T11, T13, TLast)[src]

type Left = (T0, T2, T4, T6, T8, T10, T12)

type Right = (T1, T3, T5, T7, T9, T11, T13, TLast)

impl<T0, T2, T4, T6, T8, T10, T12, T14, T1, T3, T5, T7, T9, T11, T13, T15> Split for (T0, T2, T4, T6, T8, T10, T12, T14, T1, T3, T5, T7, T9, T11, T13, T15)[src]

type Left = (T0, T2, T4, T6, T8, T10, T12, T14)

type Right = (T1, T3, T5, T7, T9, T11, T13, T15)

impl<T0, T2, T4, T6, T8, T10, T12, T14, T1, T3, T5, T7, T9, T11, T13, T15, TLast> Split for (T0, T2, T4, T6, T8, T10, T12, T14, T1, T3, T5, T7, T9, T11, T13, T15, TLast)[src]

type Left = (T0, T2, T4, T6, T8, T10, T12, T14)

type Right = (T1, T3, T5, T7, T9, T11, T13, T15, TLast)

Loading content...

Implementors

Loading content...