pub trait Prepend<T> {
type PreprendResult;
fn prepend(self, value: T) -> (T, Self::PreprendResult);
}
Expand description
Allows prepending of values to a tuple
Required Associated Types§
sourcetype PreprendResult
type PreprendResult
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry.
Required Methods§
sourcefn prepend(self, value: T) -> (T, Self::PreprendResult)
fn prepend(self, value: T) -> (T, Self::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.
Implementors§
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
Implement prepend for tuple list.