-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- markdownlint-disable MD024 --> | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
### Added | ||
|
||
- `Set<T>` is a new ordered collection type for this crate. It is similar to | ||
BTreeSet, but uses this crate's `Map` type under the hood. | ||
- `Map::insert_with` takes a closure for the value and only invokes the closure | ||
if they key is not found in the collection. If the key is found in the | ||
collection, the map is left unchanged and the key provided to this function is | ||
returned. | ||
- `Map::get_field` returns the `Field` contained within the map, allowing access | ||
to both the Key and value. | ||
- `Map::keys`/`Map::into_keys` return iterators over the keys of a Map. | ||
- `Map::union`/`Map::intersection`/`Map::difference` are new functions that | ||
return iterators that efficiently perform the "set" operations. | ||
- `Field::into_key` takes ownership of the field and returns the owned Key. | ||
- `Field::into_parts` takes ownership of the field and returns a `(Key, Value)` | ||
tuple. | ||
- `Entry::or_default` inserts a default value for the entry if it is vacant. A | ||
mutable reference to the entry's value is returned. | ||
- `VacantEntry::key` returns a reference to the key being inserted. | ||
|
||
## v0.1.0 | ||
|
||
Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters