Both std::path::Path and std::path::PathBuf implement std::convert::From<String> but neither one implements the std::str::FromStr trait. Since both Path and PathBuf have infallible conversions from string types, they should implement std::str::FromStr (esp. so that they can be used as generic "convertible from str" types).
Note that if something is done about rust-lang/rfcs#2143, this would be a moot discussion.
Both
std::path::Pathandstd::path::PathBufimplementstd::convert::From<String>but neither one implements thestd::str::FromStrtrait. Since bothPathandPathBufhave infallible conversions from string types, they should implementstd::str::FromStr(esp. so that they can be used as generic "convertible from str" types).Note that if something is done about rust-lang/rfcs#2143, this would be a moot discussion.