Skip to main content

AddLength

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".

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