fixed-hashmap 0.1.0

A fixed-capacity, allocation-free hashmap for fixed-size byte keys and values
Documentation
#![no_std]

//! A fixed-capacity hashmap for fixed-size byte keys and values.
//!
//! The map uses caller-provided storage and does not allocate.
//!
//! ```
//! use core::mem::MaybeUninit;
//! use fixed_hashmap::{EntryStorage, FixedMap};
//!
//! let mut entries: [EntryStorage<2, 2>; 16] =
//!     core::array::from_fn(|_| MaybeUninit::uninit());
//! let mut tags = [0; 16];
//! let mut map = FixedMap::<8, 2, 2>::new(&mut entries, &mut tags).unwrap();
//! map.insert(*b"hi", *b"ok").unwrap();
//! assert_eq!(map.get(b"hi"), Some(b"ok"));
//! ```

#[cfg(test)]
extern crate std;

mod hash;
mod map;
mod simd;

#[cfg(feature = "secure-hash")]
pub use hash::SecureHasher;
pub use hash::{FastHasher, KeyHasher};
pub use map::{EntryStorage, FixedMap, InsertError, StorageError};