Files
rust/src/liballoc
bors a8feaee5b6 Auto merge of #44734 - mchlrhw:wip/hashmap-entry-and-then, r=BurntSushi
Implement `and_modify` on `Entry`

## Motivation

`Entry`s are useful for allowing access to existing values in a map while also allowing default values to be inserted for absent keys. The existing API is similar to that of `Option`, where `or` and `or_with` can be used if the option variant is `None`.

The `Entry` API is, however, missing an equivalent of `Option`'s `and_then` method. If it were present it would be possible to modify an existing entry before calling `or_insert` without resorting to matching on the entry variant.

Tracking issue: https://github.com/rust-lang/rust/issues/44733.
2017-10-06 12:51:11 +00:00
..
2017-10-06 09:10:31 +01:00
2017-09-22 22:05:18 +02:00
2017-09-22 15:45:37 +02:00
2017-06-13 23:37:34 -07:00
2017-06-13 23:37:34 -07:00
2017-08-18 16:32:38 +02:00
2017-06-30 08:34:53 -10:00
2017-10-01 12:15:05 -04:00