Rust: Tracking issue for RFC 2295, "Extend Pattern API to OsStr"

Created on 9 Apr 2018  路  5Comments  路  Source: rust-lang/rust

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

Steps:

Unresolved questions:

None


A-ffi B-RFC-approved C-tracking-issue Libs-Tracked T-libs

Most helpful comment

@rustbot claim

All 5 comments

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.

Now that rust-lang/rfcs#2500 has merged, can this RFC be implemented?

@rustbot claim

@rustbot unassign

@rustbot assign @Kixiron

Was this page helpful?
0 / 5 - 0 ratings