-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking issue for RFC 2500, "Needle API (née Pattern API)" #56345
Copy link
Copy link
Closed
Labels
A-sliceArea: `[T]`Area: `[T]`A-strArea: str and StringArea: str and StringC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.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
A-sliceArea: `[T]`Area: `[T]`A-strArea: str and StringArea: str and StringC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.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.
This is a tracking issue for the RFC "Needle API (née Pattern API)" (rust-lang/rfcs#2500).
Feature gates:
#####Steps:
Unresolved questions:
Currently, due to Implied bounds rfcs#2089 and/or RFC: Associated type bounds of form
MyTrait<AssociatedType: Bounds>rfcs#2289 not being implemented, using aHaystackin any algorithm would need to a redundantwhereclause.Naive vs. fast algorithm for
T: !OrdShould we represent
SharedHaystackusing a more general concept of "cheaply cloneable"?With a benefit of simplified API, do we want to merge
ConsumerandSearcherinto a single trait?Stabilization should require RFC 1672 (disjointness based on associated types).