c2_chacha::stream_cipher::generic_array::arr

Trait AddLength

Source
pub trait AddLength<T, N>: ArrayLength<T>
where N: ArrayLength<T>,
{ type Output: ArrayLength<T>; }
Expand description

Helper trait for arr! macro

Required Associated Types§

Source

type Output: ArrayLength<T>

Resulting length

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§

Source§

impl<T, N1, N2> AddLength<T, N2> for N1
where N1: ArrayLength<T> + Add<N2>, N2: ArrayLength<T>, <N1 as Add<N2>>::Output: ArrayLength<T>,

Source§

type Output = <N1 as Add<N2>>::Output