Skip to main content

Concat

pub unsafe trait Concat<T, M>: GenericSequence<T>
where M: ArrayLength<T>,
{ type Rest: GenericSequence<T, Length = M>; type Output: GenericSequence<T>; // Required method fn concat(self, rest: Self::Rest) -> Self::Output; }
👎Deprecated: please upgrade to generic-array 1.x
Expand description

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

Required Associated Types§

type Rest: GenericSequence<T, Length = M>

👎Deprecated: please upgrade to generic-array 1.x

Sequence to be concatenated with self

type Output: GenericSequence<T>

👎Deprecated: please upgrade to generic-array 1.x

Resulting sequence formed by the concatenation.

Required Methods§

fn concat(self, rest: Self::Rest) -> Self::Output

👎Deprecated: please upgrade to generic-array 1.x

Concatenate, or join, two sequences.

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.

Implementors§

§

impl<T, N, M> Concat<T, M> for GenericArray<T, N>
where N: ArrayLength<T> + Add<M>, M: ArrayLength<T>, <N as Add<M>>::Output: ArrayLength<T>,

§

type Rest = GenericArray<T, M>

§

type Output = GenericArray<T, <N as Add<M>>::Output>