Closed
Closed
Copy link
Description
Location
https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html
https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html
Summary
both Into
and From
say that Into
should be preferred in bounds and From
should be preferred when implementing.
only the part about preferring TryFrom
appears in the docs mentioned above.
this has led to some usages of TryFrom
in bounds, such as in ureq::get
.
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.