File tree 1 file changed +5
-3
lines changed
library/core/src/iter/traits
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ unsafe impl<I: TrustedLen + ?Sized> TrustedLen for &mut I {}
43
43
/// An iterator that when yielding an item will have taken at least one element
44
44
/// from its underlying [`SourceIter`].
45
45
///
46
- /// Calling [`next()`] guarantees that at least one value of the iterator's underlying source
47
- /// has been moved out and the result of the iterator chain could be inserted in its place,
48
- /// assuming structural constraints of the source allow such an insertion.
46
+ /// Calling any method that advances the iterator, e.g. [`next()`] or [`try_fold()`],
47
+ /// guarantees that for each step at least one value of the iterator's underlying source
48
+ /// has been moved out and the result of the iterator chain could be inserted
49
+ /// in its place, assuming structural constraints of the source allow such an insertion.
49
50
/// In other words this trait indicates that an iterator pipeline can be collected in place.
50
51
///
51
52
/// [`SourceIter`]: crate::iter::SourceIter
52
53
/// [`next()`]: Iterator::next
54
+ /// [`try_fold()`]: Iterator::try_fold
53
55
#[ unstable( issue = "none" , feature = "inplace_iteration" ) ]
54
56
pub unsafe trait InPlaceIterable : Iterator { }
You can’t perform that action at this time.
0 commit comments