-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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.
focusaurus, dlukes, jistr, mitsuhiko, gila and 1 more
Metadata
Metadata
Assignees
Labels
C-feature-acceptedCategory: A feature request that has been accepted pending implementation.Category: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.