Skip to content

Commit 6cd33ff

Browse files
committed
docs(iter): Note optimizations
1 parent 4b5bcdf commit 6cd33ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/iter.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ where
8181
/// `in_hash`. The implementation-specific predicates will be
8282
/// deprecated when Rust supports trait specialization.
8383
///
84+
/// If you need to optimize this
85+
/// - Type is `Ord`, call `sort()` on this predicate.
86+
/// - Type is `Hash`, replace `in_iter` with `in_hash`.
87+
///
8488
/// # Examples
8589
///
8690
/// ```

0 commit comments

Comments
 (0)