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.
WithPosition
1 parent 9958f40 commit a48c5b4Copy full SHA for a48c5b4
src/with_position.rs
@@ -1,3 +1,4 @@
1
+use std::fmt;
2
use std::iter::{Fuse, FusedIterator, Peekable};
3
4
/// An iterator adaptor that wraps each element in an [`Position`].
@@ -14,6 +15,14 @@ where
14
15
peekable: Peekable<Fuse<I>>,
16
}
17
18
+impl<I> fmt::Debug for WithPosition<I>
19
+where
20
+ I: Iterator,
21
+ Peekable<Fuse<I>>: fmt::Debug,
22
+{
23
+ debug_fmt_fields!(WithPosition, handled_first, peekable);
24
+}
25
+
26
impl<I> Clone for WithPosition<I>
27
where
28
I: Clone + Iterator,
0 commit comments