Skip to content

Refine conversions between array types #1027

Open

Description

@jturner314

Activity

  1. changed the title [-]Refine conversions between array types.[/-] [+]Refine conversions between array types[/+] on Jun 5, 2021
  2. bluss commented on Jun 5, 2021

    @bluss
    Member

    I'm not sure about going from DataOwned to Data. I guess there are many alternatives for how it could work. I was first thinking of - unsure if we can realize it - a conversion of owned arrays only, which would move if needed otherwise clone.

  3. jturner314 commented on Jun 5, 2021

    @jturner314
    MemberAuthor

    Okay, yeah, leaving it on DataOwned would be fine. We'd still add an A: Clone bound, and drop the "without any copying" guarantee. OwnedRepr, OwnedArcRepr, and the Owned variant of CowRepr would implement this without copying, but the View variant of CowRepr would copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions