rust/library/alloc/src/collections
Matthias Krüger f4297b06e8
Rollup merge of #98125 - KarlWithK:entry_add_modify_doc, r=Dylan-DPC
Entry and_modify doc

This PR modifies the documentation for [HashMap](https://doc.rust-lang.org/std/collections/struct.HashMap.html#) and [BTreeMap](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#) by introducing examples for `and_modify`. `and_modify` is a function that tends to give more idiomatic rust code when dealing with these data structures -- yet it lacked examples and was hidden away. This PR adds that and addresses #98122.

I've made some choices which I tried to explain in my commits. This is my first time contributing to rust, so hopefully, I made the right choices.
2022-06-16 09:10:21 +02:00
..
binary_heap Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
btree Rollup merge of #98125 - KarlWithK:entry_add_modify_doc, r=Dylan-DPC 2022-06-16 09:10:21 +02:00
linked_list Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
vec_deque Rollup merge of #89685 - DeveloperC286:iter_fields_to_private, r=oli-obk 2022-05-30 15:57:27 -07:00
binary_heap.rs Put a bound on collection misbehavior 2022-05-23 09:20:57 -05:00
linked_list.rs Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
mod.rs Clarify explicitly that BTree{Map,Set} are ordered. 2022-01-09 18:01:44 -05:00