I'm designing an API that uses SmallBitVec to store the Bidi information of each segment in a URL's domain host. When inserting a new segment, say to change example.com into www.example.com, I need to insert the Bidi information of www into the SmallBitVec.
On a related note, a method like resize that removes/inserts bits at any index instead of just the end would be useful to me. It's not as required for my purposes but it would still really help. That said it's probably niche and annoying to make fast so no worries if it's not worth the effort.
Edit: I think I also need {SmallBitVec, VecRange}::count_{ones,zeros}. Trying to implement via the provided iterators is way too slow. Again, no worries if not worth the effort.
I'm designing an API that uses SmallBitVec to store the Bidi information of each segment in a URL's domain host. When inserting a new segment, say to change example.com into www.example.com, I need to insert the Bidi information of www into the SmallBitVec.
On a related note, a method like
resizethat removes/inserts bits at any index instead of just the end would be useful to me. It's not as required for my purposes but it would still really help. That said it's probably niche and annoying to make fast so no worries if it's not worth the effort.Edit: I think I also need
{SmallBitVec, VecRange}::count_{ones,zeros}. Trying to implement via the provided iterators is way too slow. Again, no worries if not worth the effort.