Document relationship between Deref[Mut], ToOwned, AsRef/AsMut, Borrow[Mut], From, and Into #36435
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-medium
Medium priority
Rust has a proliferation of conversion traits. The Book has a chapter on "Borrow and AsRef" but it doesn't really clear things up. It would be great to have a document which explains how all the traits inter-relate, and how to pick one for a given use case.
The text was updated successfully, but these errors were encountered: