-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fixed smallvec implementations to process elements inside. #82
Conversation
Hi @xkikeg and thanks for another PR! So as I understand it:
This PR improves the impl from:
To become:
This is clearly an improvement, as we can now convert any The limitation, as you note, is that it is restricting the usage to I had a try and generalising it for the current
To make this work I also had to remove the I changed:
To become:
I pushed a WIP commit to this PR, what do you think? Perhaps it would make sense to do this for |
Thanks for suggestions! Your impl seems good so no objections for going with that approach (A: Array<Item=T>). |
…ec::SmallVec<[T; N]>`
42d0982
to
4c1176d
Compare
@xkikeg merged, thanks. Do you need this immediately? If not i'd prefer to hold off on a release until some other changes land. |
Thanks! now I don't need this (foturunately or unfortunately |
Now there's one drawback that in some case SmallVec won't be supported where A is still smallvec::Array but isn't [T; N]. However, it should be OK in reality, given smallvec itself is going to be SmallVec<T, N> instead of SmallVec<[T; N]> with removing this.
Context: servo/rust-smallvec#183
Closes #89