8000 Support for the Bytes crate · Issue #184 · BurntSushi/bstr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support for the Bytes crate #184
Open
@Sytten

Description

@Sytten

Hi!

Just an idea, I am starting to move code from using Arc<Vec<u8>> to using the Bytes crate (https://github.com/tokio-rs/bytes). This means losing a lot of the capabilities provided by bstr since the traits like ByteSlice always return &[u8] but they could just as easily return Bytes objects.
Let me know what you think, happy to pinch in for the implementation. It should be fairly similar to ByteSlice just without the references.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0