Skip to main content

ArrayDequeN

Type Alias ArrayDequeN 

Source
pub type ArrayDequeN<T, const N: usize> = ArrayDeque<T, <[T; N] as AssocArraySize>::Size>;
Expand description

ArrayDeque with a const-generic usize length, using the AssocArraySize type alias for N.

To construct from a literal array, use from_array.

Note that not all N values are valid due to limitations inherent to typenum and Rust. You may need to combine [Const] with other typenum operations to get the desired length.

Aliased Typeยง

pub struct ArrayDequeN<T, const N: usize> { /* private fields */ }