Skip to content

Add Bytes::try_slice method #807

@al8n

Description

@al8n

Hi, will it be acceptable to add a try_slice method? Currently, having to copy the bounds check logic before invoking the Bytes::slice.

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