Trait ConsAppend

Source
pub trait ConsAppend<T> {
    type Output;

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

Prepend a new type into a cons list

Required Associated Types§

Source

type Output

Result of append

Required Methods§

Source

fn append(self, t: T) -> Self::Output

Prepend to runtime cons value

Implementations on Foreign Types§

Source§

impl<T> ConsAppend<T> for ()

Source§

type Output = (T, ())

Source§

fn append(self, t: T) -> <() as ConsAppend<T>>::Output

Source§

impl<T, A, B> ConsAppend<T> for (A, B)
where B: ConsAppend<T>,

Source§

type Output = (A, <B as ConsAppend<T>>::Output)

Source§

fn append(self, t: T) -> <(A, B) as ConsAppend<T>>::Output

Implementors§