small-fixed-array 0.4.10

A crate providing fixed length immutable collections with a low memory footprint.
1
2
3
4
5
6
7
8
use small_fixed_array::FixedArray;

#[test]
fn check_zst_functionality() {
    let array = FixedArray::<(), u32>::from_vec_trunc(vec![(); 16]);
    assert!(!array.is_empty());
    assert_eq!(array.len(), 16);
}