Many From
implementations are undocumented · Issue #51430 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
While std::convert::From
has very detailed high level documentation, the implementations often lack docs on how they work and use the default "performs the conversion" boilerplate.
This at least includes all String
methods, also, all integer conversions. Both of these can have interesting behaviour, especially in relation to each other. For example, the different allocation behaviour between From<Box<str>>
and From<&'a str>
is notable and hard to figure out from the source, as it goes through three layers of indirection.