Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Clone for IntoIter<A: Array> where A: Clone #178

Closed
robinhundt opened this issue Nov 4, 2019 · 1 comment · Fixed by #192
Closed

Implement Clone for IntoIter<A: Array> where A: Clone #178

robinhundt opened this issue Nov 4, 2019 · 1 comment · Fixed by #192

Comments

@robinhundt
Copy link

@robinhundt robinhundt commented Nov 4, 2019

Implement Clone for IntoIter<A: Array> where A: Clone

This would be in line with the Iter struct that is returned when calling into_iter() on a Vec.
https://doc.rust-lang.org/std/slice/struct.Iter.html

@mbrubeck

This comment has been minimized.

Copy link
Contributor

@mbrubeck mbrubeck commented Dec 10, 2019

If someone would like to implement this, it could be done using IntoIter::as_slice (recently added in #182) and SmallVec::from_slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.