Trait tupl::GrowableTuple
source · pub trait GrowableTuple: Tuple {
type Append<T>: NonEmptyTuple<TruncateTail = Self, Tail = T>;
type Prepend<T>: NonEmptyTuple<Head = T, TruncateHead = Self>;
// Required methods
fn append<T>(self, value: T) -> Self::Append<T>;
fn prepend<T>(self, value: T) -> Self::Prepend<T>;
}Expand description
A trait representing tuples that can grow. It is implemented for tuples of arity 0 to 49.
Required Associated Types§
sourcetype Append<T>: NonEmptyTuple<TruncateTail = Self, Tail = T>
type Append<T>: NonEmptyTuple<TruncateTail = Self, Tail = T>
This tuple with an extra element T appended to it.
sourcetype Prepend<T>: NonEmptyTuple<Head = T, TruncateHead = Self>
type Prepend<T>: NonEmptyTuple<Head = T, TruncateHead = Self>
This tuple with an extra element T prepended to it.