use core::mem::MaybeUninit;
use fixed_hashmap::{EntryStorage, FixedMap};
const CAPACITY: usize = 4;
fn main() {
let mut entries: [EntryStorage<4, 8>; CAPACITY * 2] =
core::array::from_fn(|_| MaybeUninit::uninit());
let mut tags = [0; CAPACITY * 2];
let mut map = FixedMap::<CAPACITY, 4, 8>::new(&mut entries, &mut tags)
.expect("backing storage has twice the entry capacity");
map.insert(*b"key1", *b"value001")
.expect("the map has free capacity");
assert_eq!(map.get(b"key1"), Some(b"value001"));
println!("{} entry stored", map.len());
}