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

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
Copy link
Collaborator

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
Development

Successfully merging a pull request may close this issue.

2 participants