Skip to content

std::str::Bytes should implement Clone #12677

Closed
@Valloric

Description

@Valloric

Calling chars() on a &str results in an iterator that can be cloned. Calling bytes() doesn't. This makes it very difficult to port code that uses the first to use the second.

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