Skip to content

Commit a4ed1b8

Browse files
committed
impl Debug for IntoIter
1 parent 34d7b8d commit a4ed1b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,15 @@ pub struct IntoIter<A: Array> {
15131513
end: usize,
15141514
}
15151515

1516+
impl<A: Array> fmt::Debug for IntoIter<A>
1517+
where
1518+
A::Item: fmt::Debug,
1519+
{
1520+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1521+
f.debug_tuple("IntoIter").field(&self.as_slice()).finish()
1522+
}
1523+
}
1524+
15161525
impl<A: Array + Clone> Clone for IntoIter<A>
15171526
where
15181527
A::Item: Clone,

0 commit comments

Comments
 (0)