Skip to content

[Feature request] SmallBitVec::insert #33

@Scripter17

Description

@Scripter17

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions