You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
[-]Refine conversions between array types.[/-][+]Refine conversions between array types[/+]bluss commentedon 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 commentedon Jun 5, 2021
Okay, yeah, leaving it on
DataOwnedwould be fine. We'd still add anA: Clonebound, and drop the "without any copying" guarantee.OwnedRepr,OwnedArcRepr, and theOwnedvariant ofCowReprwould implement this without copying, but theViewvariant ofCowReprwould copy.