contain-rs / bit-vec

A Vec of Bits
Apache License 2.0
166 stars 60 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 3 months ago

Nope, you'd better use a custom Allocator

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

pczarn commented 2 months ago

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

Changing the issue name