Improve std::ops docs Fixes #29365. (This fixes all but one point from @steveklabnik's list, but that point was referring to examples of implementing range traits, but there are no range traits in std::ops.) The main changes are quite a bit of copyediting, adding more "real" examples for some of the traits, incorporating some guidance from the API docs, more linking (cross-docs and to the book & reference), cleaning up examples, moving things around, and so on. Refer to the commit messages for more details. Note: I decided to link to the second edition of the book since I think it's more appropriate now for the sections I linked, if this is not okay, please say so! |
||
|---|---|---|
| .. | ||
| arith.rs | ||
| bit.rs | ||
| deref.rs | ||
| drop.rs | ||
| function.rs | ||
| index.rs | ||
| mod.rs | ||
| place.rs | ||
| range.rs | ||
| try.rs | ||
| unsize.rs | ||