- Added
or_insert
,or_insert_with
,or_insert_with_key
andor_default
for better match the standard hashmap api
- VacantEntry::insert after remove causes corrupted data
- Avoid re-hashing (twice!) in VacantEntry::insert
IntMap::new
is now const and creates an instance with zero capacity, thus will not allocate. The latter is also true forIntMap::default
. Previously the initial capacity was 4. If you want to restore the old behavior, you can useIntMap::with_capacity(4)
.- The prime for hashing
u64
keys has changed. The previous one was11400714819323198549u64
. If you want to restore the old prime, you can create a wrapper type for theu64
key and implementIntKey
for it. - Make all iterator structs public.
IntMap
and co. have now a new type parameterK
that represents the key type. The key can be any primitive integer. Custom types that wrap primitive integers are also supported if they implementIntKey
.- The iterator structs return the key by value instead of by reference.
insert
now matches behavior of built-ininsert
- Old
insert
has been renamed toinsert_checked
- Implement Default for IntMap @roman-kashitsyn
- Added
set_load_factor
- PartialEq implementation checked inclusion, not equality @roman-kashitsyn
- Change default load factor to 90.9
- Bump to 1.0 as we are feature complete!
- Added Entry api @jakoschiko
- Added changelog!
- Add support for Serde behind "serde" feature flag, disabled by default @roman-kashitsyn
- Improve documentation of
insert
@jakoschiko - Various code modernizations @chinoto