Closed pickfire closed 3 years ago
It won't work because you need a reference to the Bump
to collect them into.
Extend
is implemented, however, and side steps this problem since an already-constructed bumpalo::collections::Vec
has a reference to the Bump
internally.
I tried using Bump.alloc_slice_copy
and that works nicely, I saw that on another place.
counts
have typeHashMap<&'bump [u8], u64>
Can we implement
FromIter
and other trait to supportcollect
for feature parity with standard library?