pub unsafe trait Lengthen<T>: Sized + GenericSequence<T> {
type Longer: Shorten<T, Shorter = Self>;
// Required methods
fn append(self, last: T) -> Self::Longer;
fn prepend(self, first: T) -> Self::Longer;
}
Expand description
Defines any GenericSequence
which can be lengthened or extended by appending
or prepending an element to it.
Any lengthened sequence can be shortened back to the original using pop_front
or pop_back
Required Associated Types§
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.