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

Add a RawSmallVec type #245

Open
timothee-haudebourg opened this issue Dec 22, 2020 · 1 comment
Open

Add a RawSmallVec type #245

timothee-haudebourg opened this issue Dec 22, 2020 · 1 comment

Comments

@timothee-haudebourg
Copy link

I see a lot of suggestions such as #220 and #226 to add new data structures based on small vec. I believe your position is to let other crates provide these data structures, which is great. However this can be a bit tedious with the current api which lacks a way to deal with "small" memory chunks independently of the actual data stored on it.

In the standard library, this is done using the RawVec type. Would it be possible to provide a similar RawSmallVec type that would allow other crates to build on that to create other data structures such as SmallVecDeque? This could be implemented in the 2.0 version perhaps.

@mbrubeck
Copy link
Collaborator

Good idea. I think this fits in well with the 2.0 plan in #240.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants