Tracking issue for RFC 2500, "Needle API (née Pattern API)" (original) (raw)
This is a tracking issue for the RFC "Needle API (née Pattern API)" (rust-lang/rfcs#2500).
Feature gates:
#####
Steps:
- Implement the RFC (cc @rust-lang/libs @kennytm @bluss -- can anyone write up mentoring instructions?)
- Stabilization PR (see instructions on forge)
- Currently, due to Implied bounds rfcs#2089 and/or RFC: Associated type bounds of form MyTrait<AssociatedType: Bounds> rfcs#2289 not being implemented, using a
Haystackin any algorithm would need to a redundantwhereclause. - Naive vs. fast algorithm for
T: !Ord - Should 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).