Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd to_smallvec for the slice primitive type #116
Closed
Comments
|
As an alternative, it could be done using |
|
Yes, that's what I'm doing now, but going through and replacing lots of to_vec calls is tedious. It would be nice if it was possible to just find and replace the method call. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The slice primitive type has a
to_vecmethod which makes it convenient to convert a slice to a vector. It would be great if this crate could define an extension trait that added a method calledto_smallvec(or some other name) which did the same thing forSmallVec.This makes it particularly convenient to port code to using SmallVec since you can just import that extension trait instead of converting all the calls to😃
to_vec.