Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine conversions between array types #1027

Open
jturner314 opened this issue Jun 5, 2021 · 2 comments
Open

Refine conversions between array types #1027

jturner314 opened this issue Jun 5, 2021 · 2 comments

Comments

@jturner314
Copy link
Member

@jturner314 jturner314 changed the title Refine conversions between array types. Refine conversions between array types Jun 5, 2021
@bluss
Copy link
Member

bluss commented Jun 5, 2021

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.

@jturner314
Copy link
Member Author

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
Projects
None yet
Development

No branches or pull requests

2 participants