contain-rs / bit-vec

A Vec of Bits
Apache License 2.0
169 stars 59 forks source link

Support Custom Allocators #75

Open zhuxiujia opened 1 year ago

zhuxiujia commented 1 year ago

may be

let mut bits = BitVec::from_bytes(&mut mmap[..]);

but now (can't be mut)

let mut bits = BitVec::from_bytes(&mmap[..]);
pczarn commented 5 months ago

Nope, you'd better use a custom Allocator

This is not so simple and easy, if I understand you right

pczarn commented 4 months ago

If I understand you right, you need stuff like https://docs.rs/outsource-heap/latest/outsource_heap/

Changing the issue name