Closed
Description
#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:
- Add
ByNeed
andPredicate
traits (needs negative bounds to work with unboxed closures)
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