You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #28 - nipunn1313:insert_slice, r=jdm
Implement insert_many<IntoIterator> for SmallVec
This doesn't work as is, but I wanted to put it up for feedback.
According to these docs:
https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
The copy_nonoverlapping function copies memory as intended, but the ownership of the values copied are not copied over to dest, so when the box is consumed, the SmallVec does not maintain ownership. Not sure how to do this with unsafe code.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/28)
<!-- Reviewable:end -->
0 commit comments