We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0891496 commit 0c82a5cCopy full SHA for 0c82a5c
src/libcore/iter/traits/exact_size.rs
@@ -69,9 +69,10 @@
69
/// ```
70
#[stable(feature = "rust1", since = "1.0.0")]
71
pub trait ExactSizeIterator: Iterator {
72
- /// Returns the exact length of the iterator, which is the number of times
73
- /// the iterator will return `Some(T)` before returning `None`.
+ /// Returns the exact length of the iterator.
74
///
+ /// The implementation ensures that the iterator will return exactly `len()`
75
+ /// more times a `Some(T)` value, before returning `None`.
76
/// This method has a default implementation, so you usually should not
77
/// implement it directly. However, if you can provide a more efficient
78
/// implementation, you can do so. See the [trait-level] docs for an
0 commit comments