Skip to content

Add ByNeed and Predicate traits #27517

Closed
Closed
@SimonSapin

Description

@SimonSapin

#18424 "Implement collections reform" was closed with one part left not implemented yet:

Tracking issue for rust-lang/rfcs#235, there are a number of sub-issues associated with this:

[...]

Backwards compatible changes that will require additional language features:

In particular, making Iterator::position generic over a Predicate trait would help replacing [T]::position_elem, which was deprecated in #26914, without the verbosity of .position(|i| i == &x)

CC @alexcrichton, @aturon

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions