Skip to content

Commit 6e61239

Browse files
author
bors-servo
authored
Auto merge of #196 - Nemo157:intoiter-debug, r=mbrubeck
impl Debug for IntoIter This has long been provided by `std::vec::IntoIter`, so is useful in cases where it is being directly replaced.
2 parents 34d7b8d + a4ed1b8 commit 6e61239

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)