]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #86211 - tlyu:option-result-overviews, r=joshtriplett
authorbors <bors@rust-lang.org>
Wed, 14 Jul 2021 05:10:57 +0000 (05:10 +0000)
committerbors <bors@rust-lang.org>
Wed, 14 Jul 2021 05:10:57 +0000 (05:10 +0000)
commita08f25a7ef2800af5525762e981c24d96c14febe
treeb6fb670eda9a5ec7e8950d81eab730f67914089d
parent2155386f319d1d17b7b1604a2d6401c98decce9b
parent2b4a6aa1494d80564662271900fa3c73d713411e
Auto merge of #86211 - tlyu:option-result-overviews, r=joshtriplett

create method overview docs for core::option and core::result

The `Option` and `Result` types have large lists of methods. They each could use an overview page of methods grouped by category. These proposed overviews include "truth tables" for the underappreciated boolean operators/combinators of these types. The methods are already somewhat categorized in the source, but some logical groupings are broken up by the necessities of putting related methods in different `impl` blocks, for example.

This is based on #86209, but those are small changes and unlikely to conflict.
library/core/src/option.rs
library/core/src/result.rs