Skip to content

Strongly typed bitvector-lengths #162

@djrenren

Description

@djrenren

Now that const generics are stable, we could have a pub struct BV<'ctx, const N: usize>.
This would prevent any mix ups when you have multiple sizes of bitvector floating around. I don't have time to put together a PR for this atm, but it would be really neat and I think not too difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions