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
Tuples that can grow. Implemented for sized tuples of arity 0 to 31.
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.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.