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

Immutably borrowing BumpVec? #3

Closed
bluurryy opened this issue Mar 27, 2024 · 0 comments
Closed

Immutably borrowing BumpVec? #3

bluurryy opened this issue Mar 27, 2024 · 0 comments

Comments

@bluurryy
Copy link
Owner

bluurryy commented Mar 27, 2024

We could implement a BumpVec that just immutably borrows the bump allocator. There is a stub implementation in src/vec.rs that we use for alloc_iter and alloc_fmt because the standard Vec produced really bad code for some reason.

An immutably borrowing BumpVec is pretty much the same as Vec. But it could implement conversion to FixedBumpVec and BumpBox<[T]> and back. MIN_ALIGN would also affect it unlike Vec.

If so we should probably rename the current BumpVec, MutBumpVec or something.

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

1 participant