#stack #array #collection #array-vec


A data structure for storing and manipulating fixed number of elements of a specific type

13 unstable releases (3 breaking)

0.4.1 Apr 10, 2022
0.4.0 Apr 10, 2022
0.3.0 Apr 8, 2022
0.2.4 Jan 25, 2022
0.1.5 Jan 8, 2022

#2027 in Data structures

Download history 7/week @ 2024-02-26 7/week @ 2024-03-04 17/week @ 2024-03-11 135/week @ 2024-04-01

153 downloads per month
Used in btree-map


755 lines


This library provides an array type that is similar to the built-in Vec type, but lives on the stack!

You may use this library to store a fixed number of elements of a specific type (even non-copy types)


use stack_array::*;

let mut arr: ArrayBuf<String, 4> = ArrayBuf::new();


println!("{:#?}", arr);

Note: Documentation is incomplete and may be inaccurate. I do not have the time to update it. Please report any issues, or contribute!

No runtime deps