-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
OsStr: compare prefix #40300
Copy link
Copy link
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.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.
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
OsStrcould 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_stris not suitable, as following case shows: