Prepend

Trait Prepend 

Source
pub trait Prepend<T> {
    type Output;

    // Required method
    fn prepend(self, other: T) -> Self::Output;
}
Expand description

Helper trait to allow Perpending of tuples

Required Associated Types§

Required Methods§

Source

fn prepend(self, other: T) -> Self::Output

Append T onto the start of the tuple returning a new tuple with all the elements from shifted over one row and T in the first slot

Implementations on Foreign Types§

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T> Prepend<T> for (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> Prepend<T> for (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> Prepend<T> for (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> Prepend<T> for (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> Prepend<T> for (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> Prepend<T> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> Prepend<T> for ()

Source§

type Output = (T,)

Source§

fn prepend(self, x: T) -> (T,)

Implementors§