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

Tracking issue for RFC 2295, "Extend Pattern API to OsStr" #49802

Open
Centril opened this Issue Apr 9, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Centril
Contributor

Centril commented Apr 9, 2018

This is a tracking issue for the RFC "Extend Pattern API to OsStr" (rust-lang/rfcs#2295).

Steps:

Unresolved questions:

None

@kennytm

This comment has been minimized.

Member

kennytm commented Jul 17, 2018

Status update: I've got the implementation of this ready, but I'd like to wait for a decision on rust-lang/rfcs#2500 first, as I believe this isn't an urgent feature.

Without the pattern API part, this RFC will only provide the slicing operation (os_str[a..b]), which (1) is insta-stable as requires impl Index for OsStr, (2) the only indices that guaranteed to be valid are 0 and os_str.len(), and (3) slows down PartialEq/PartialOrd without much to return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment