OsStr: compare prefix #40300
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
OsStr
could implement a way to compare against prefix&str
(as it does not implement iterators over its data), similarly to how it implements comparison against&str
.Currently you need to go out of your way to convert to bytes.
as_str
is not suitable, as following case shows:The text was updated successfully, but these errors were encountered: