We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
peek
IntersperseWith
1 parent 9b01a11 commit d7e6babCopy full SHA for d7e6bab
src/intersperse.rs
@@ -54,6 +54,9 @@ where
54
{
55
element: ElemF,
56
iter: Fuse<I>,
57
+ /// `peek` is None while no item have been taken out of `iter` (at definition).
58
+ /// Then `peek` will alternatively be `Some(None)` and `Some(Some(item))`,
59
+ /// where `None` indicates it's time to generate from `element` (unless `iter` is empty).
60
peek: Option<Option<I::Item>>,
61
}
62
0 commit comments