Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MSRV: Rust 1.64.0 or later is now required.
The
"std"feature is no longer auto-detected. It is included in thedefault feature set, or else can be enabled like any other Cargo feature.
The
"serde-1"feature has been removed, leaving just the optional"serde"dependency to be enabled like a feature itself.IndexMap::get_index_mutnow returnsOption<(&K, &mut V)>, changingthe key part from
&mut Kto&K. There is also a new alternativeMutableKeys::get_index_mut2to access the former behavior.The new
map::Slice<K, V>andset::Slice<T>offer a linear view of mapsand sets, behaving a lot like normal
[(K, V)]and[T]slices. Notably,comparison traits like
Eqonly consider items in order, rather than hashlookups, and slices even implement
Hash.IndexMapandIndexSetnow havesort_by_cached_keyandpar_sort_by_cached_keymethods which perform stable sorts in placeusing a key extraction function.
IndexMapandIndexSetnow havereserve_exact,try_reserve, andtry_reserve_exactmethods that correspond to the same methods onVec.However, exactness only applies to the direct capacity for items, while the
raw hash table still follows its own rules for capacity and load factor.
The
Equivalenttrait is now re-exported from theequivalentcrate,intended as a common base to allow types to work with multiple map types.
The
hashbrowndependency has been updated to version 0.14.The
serde_seqmodule has been moved from the crate root to below themapmodule.