Landed in #62205
Public APIpub mod core { pub mod iter { mod traits { mod iterator { pub trait Iterator { fn cmp_by<I, F>(mut self, other: I, mut cmp: F) -> Ordering where Self: Sized, I: IntoIterator, F: FnMut(Self::Item, I::Item) -> Ordering, { } fn partial_cmp_by<I, F>( mut self, other: I, mut partial_cmp: F, ) -> Option<Ordering> where Self: Sized, I: IntoIterator, F: FnMut(Self::Item, I::Item) -> Option<Ordering>, { } fn eq_by<I, F>(mut self, other: I, mut eq: F) -> bool where Self: Sized, I: IntoIterator, F: FnMut(Self::Item, I::Item) -> bool, { } } } } } }Before stabilization:
size_hint
as an optimization for equality checking? That means buggy iterators may return incorrect results for eq_by
. We could optimize for just a handful of TrustedLen
iterators instead.stanislav-tkach, chrysn, bhgomes, rwestphal, sffc and 5 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4