Indexland
Wrappers for common collection types based on newtype indices. Increased type safety and code readability without runtime overhead.
Newtype Indices
use ;
;
Enums as Indices
use ;
const COLOR_MAPPING: = enum_index_array!;
let my_color = COLOR_MAPPING;
Support for most common Array Based Collections
IndexSlice<I, T>wrapping&[T]IndexArray<I, T, LEN>wrapping[T; LEN]IndexVec<I, T>wrappingVec<T>IndexVecDeque<I, T>wrappingVecDeque<T>IndexSmallVec<I, T, CAP>wrappingSmallVec<[T;CAP]>(Optional)IndexArrayVec<I, T, CAP>wrappingArrayVec<T, CAP>(Optional)IndexHashMap<I, K, V>wrappingIndexMap<K, V>(Optional)IndexHashSet<I, T>wrappingIndexSet<T>(Optional)NonMax<T>Integer Types for Niche Optimizations (Optional)serdesupport for all Collections (Optional)