Skip to content

IoSlice does not implement Clone #69395

Closed
@eduardosm

Description

@eduardosm

IoSlice (from std::io) does not implement the Clone trait. Is there a reason for this? Cloning can be safely simulated with IoSlice::new(*slice), but the lack of the Clone trait prevents from using functions such as Vec::<IoSlice>::extend_from_slice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions