Trait ConsAppend
legion::storage
pub trait ConsAppend<T> { type Output; fn append(self, t: T) -> Self::Output; }
Prepend a new type into a cons list
type Output
Result of append
fn append(self, t: T) -> Self::Output
Prepend to runtime cons value
impl<T> ConsAppend<T> for ()
type Output = (T, Self)
impl<T, A, B: ConsAppend<T>> ConsAppend<T> for (A, B)
type Output = (A, <B as ConsAppend<T>>::Output)