icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Make `Vec` yokeable

Open ChayimFriedman2 opened this issue 4 months ago • 3 comments

Yokeable is implemented for Vec, but it does not forward the yoking and instead just treat them as owned values that do not borrow from the cart. This is inconsistent with the implementation of Yokeable for arrays, which does forward to the items.

I don't see any inherent reason why Vec couldn't do the same. This is a breaking change, but with the current situation it is impossible (safely) to use Vec as a yokeable, while if we change it it is easily possible to restore the old behavior by deriving Yokeable on non-yoked structs.

ChayimFriedman2 avatar Apr 10 '24 05:04 ChayimFriedman2