icu4x
icu4x copied to clipboard
Make `Vec` yokeable
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.