fix(deps): update rust crate indexmap to 2.2.3 #39
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.
This PR contains the following updates:
2.0.2
->2.2.3
Release Notes
indexmap-rs/indexmap (indexmap)
v2.2.3
Compare Source
move_index
andswap_indices
methods toIndexedEntry
,OccupiedEntry
, andRawOccupiedEntryMut
, functioning like the existingmethods on
IndexMap
.shift_insert
methods onVacantEntry
andRawVacantEntryMut
, aswell as
shift_insert_hashed_nocheck
on the latter, to insert the new entryat a particular index.
shift_insert
methods onIndexMap
andIndexSet
to insert a newentry at a particular index, or else move an existing entry there.
v2.2.2
Compare Source
RawEntryBuilder::from_hash_full
,RawEntryBuilder::index_from_hash
, andRawEntryMut::index
.v2.2.1
Compare Source
RawOccupiedEntryMut::into_key(self) -> &'a mut K
,This a breaking change from 2.2.0, but that version was published for less
than a day and has now been yanked.
v2.2.0
Compare Source
The new
IndexMap::get_index_entry
method finds an entry by its index forin-place manipulation.
The
Keys
iterator now implementsIndex<usize>
for quick access to theentry's key, compared to indexing the map to get the value.
The new
IndexMap::splice
andIndexSet::splice
methods will drain thegiven range as an iterator, and then replace that range with entries from
an input iterator.
The new trait
RawEntryApiV1
offers opt-in access to a raw entry API forIndexMap
, corresponding to the unstable API onHashSet
as of Rust 1.75.Many
IndexMap
andIndexSet
methods have relaxed their type constraints,e.g. removing
K: Hash
on methods that don't actually need to hash.Removal methods
remove
,remove_entry
, andtake
are now deprecatedin favor of their
shift_
orswap_
prefixed variants, which are moreexplicit about their effect on the index and order of remaining items.
The deprecated methods will remain to guide drop-in replacements from
HashMap
andHashSet
toward the prefixed methods.v2.1.0
Compare Source
Empty slices can now be created with
map::Slice::{new, new_mut}
andset::Slice::new
. In addition,Slice::new
,len
, andis_empty
arenow
const
functions on both types.IndexMap
,IndexSet
, and their respectiveSlice
s all have binarysearch methods for sorted data: map
binary_search_keys
and setbinary_search
for plain comparison,binary_search_by
for customcomparators,
binary_search_by_key
for key extraction, andpartition_point
for boolean conditions.Configuration
📅 Schedule: Branch creation - "every 2 weeks on Wednesday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.