Skip to content

Constructor taking ownership of a Vec<u8>? #126

@joshtriplett

Description

@joshtriplett

If I have a Vec<u8> that I want to turn into a BitVec, currently I need to call from_bytes, which copies the bytes. I'd love to have a from_vec (or an impl From<Vec<u8>> for BitVec) that takes ownership of the Vec, so it doesn't need to copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions