-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to portably find if OsStr has a particular prefix #22741
Comments
This is a fundamental limitation of
There is also an This issue, however, boils down to requesting more functionality be added to |
I'm not sure it's worth asking if I'm "ok" with it if that is the location I'm required to open a ticket. Next time just tell me what needs to happen. |
Issues for new APIs and/or functionality in the standard library now belong in the RFC repository as they will require an RFC to be added. Closing in favor of rust-lang/rfcs#900 |
This is essentially the operation provided by
starts_with()
on String, str, and slice.Right now, this can only be done by either:
as_bytes()
method on OsStrExtThe text was updated successfully, but these errors were encountered: