Skip to content

Commit eac27f1

Browse files
committed
Add a release note for Slice
1 parent 49836c6 commit eac27f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RELEASES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
- The new `IndexMap::shrink_to` and `IndexSet::shrink_to` methods shrink
2020
the capacity with a lower bound.
2121

22+
- The new `map::Slice<K, V>` and `set::Slice<T>` offer a linear view of maps
23+
and sets, behaving a lot like normal `[(K, V)]` and `[T]` slices. Notably,
24+
comparison traits like `Eq` only consider items in order, rather than hash
25+
lookups, and slices even implement `Hash`.
26+
2227
- 1.8.1
2328

2429
- The new `IndexSet::replace_full` will return the index of the item along

0 commit comments

Comments
 (0)