Skip to content

Commit

Permalink
impl Debug for IntoIter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Jan 24, 2020
1 parent 34d7b8d commit a4ed1b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib.rs
Expand Up @@ -1513,6 +1513,15 @@ pub struct IntoIter<A: Array> {
end: usize,
}

impl<A: Array> fmt::Debug for IntoIter<A>
where
A::Item: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("IntoIter").field(&self.as_slice()).finish()
}
}

impl<A: Array + Clone> Clone for IntoIter<A>
where
A::Item: Clone,
Expand Down

0 comments on commit a4ed1b8

Please sign in to comment.