Trait generic_array::arr::AddLength

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

Helper trait for arr! macro

Required Associated Types§

source

type Output: ArrayLength<T>

Resulting length

Object Safety§

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