Concat in generic_array::sequence - Rust

pub unsafe trait Concat<T, M: ArrayLength>: GenericSequence<T> {
    type Rest: GenericSequence<T, Length = M>;
    type Output: GenericSequence<T>;

    // Required method
    fn concat(self, rest: Self::Rest) -> Self::Output;
}
Expand description

Defines GenericSequences which can be joined together, forming a larger array.

ยงSafety

While the concat method is marked safe, care must be taken when implementing it.

Source

Sequence to be concatenated with self

Source

Resulting sequence formed by the concatenation.

Source

Concatenate, or join, two sequences.

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.