-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
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
It is possible to create an empty PathBuf:
let p = PathBuf::new();
— yet PathBuf has no is_empty() function (nor, apparently, do Path or OsStr or OsString).
This seems inconsistent.
Of course, there are several ways around this (p == PathBuf::new(), p.to_str().map_or(true, |s| s.is_empty()), wrapping with Option), but having a simple way to check this would be nice.
Metadata
Metadata
Assignees
Labels
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.