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

Provide an alloc_extend method #4

Closed
ennis opened this issue Jan 31, 2019 · 1 comment
Closed

Provide an alloc_extend method #4

ennis opened this issue Jan 31, 2019 · 1 comment

Comments

@ennis
Copy link

ennis commented Jan 31, 2019

It would be great if Bump could provide an alloc_extend method to allocate values from an iterator and return a slice (similarly to TypedArena::alloc_extend). Something in the lines of:

pub fn alloc_extend<T, I>(&self, iterable: I) -> &mut [T] where
    T: BumpAllocSafe,
    I: IntoIterator<Item = T>, 
@fitzgen
Copy link
Owner

fitzgen commented Nov 22, 2019

We have alloc_slice_fill_iter and various other alloc_slice_* methods now, so I think we can close this. If not, please open a new issue with specifics!

@fitzgen fitzgen closed this as completed Nov 22, 2019
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