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.
1 parent 16aabf7 commit 46b6453Copy full SHA for 46b6453
src/lib.rs
@@ -748,6 +748,30 @@ impl<A: Array> Drop for IntoIter<A> {
748
}
749
750
751
+impl<A: Array> Clone for IntoIter<A>
752
+where
753
+ A::Item: Clone,
754
+{
755
+ fn clone(&self) -> IntoIter<A> {
756
+ self.v[self.index.to_usize()..]
757
+ .iter()
758
+ .cloned()
759
+ .collect::<ArrayVec<A>>()
760
+ .into_iter()
761
+ }
762
+}
763
+
764
+impl<A: Array> fmt::Debug for IntoIter<A>
765
766
+ A::Item: fmt::Debug,
767
768
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
769
+ f.debug_list()
770
+ .entries(&self.v[self.index.to_usize()..])
771
+ .finish()
772
773
774
775
/// A draining iterator for `ArrayVec`.
776
pub struct Drain<'a, A>
777
where A: Array,
0 commit comments