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_mut
now returnsOption<(&K, &mut V)>
, changingthe key part from
&mut K
to&K
. There is also a new alternativeMutableKeys::get_index_mut2
to 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
Eq
only consider items in order, rather than hashlookups, and slices even implement
Hash
.IndexMap
andIndexSet
now havesort_by_cached_key
andpar_sort_by_cached_key
methods which perform stable sorts in placeusing a key extraction function.
IndexMap
andIndexSet
now havereserve_exact
,try_reserve
, andtry_reserve_exact
methods 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
Equivalent
trait is now re-exported from theequivalent
crate,intended as a common base to allow types to work with multiple map types.
The
hashbrown
dependency has been updated to version 0.14.The
serde_seq
module has been moved from the crate root to below themap
module.