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
These operations, let's call them from_parts / into_parts, I believe would be quite useful to allow the payload to change owners/container types without moving the data.
I don't think into_array<M>() can achieve the same because one has to statically know the exact runtime size.
I thought about permitting M to be up to the capacity N but into_array would then have to pad the unused remaining space, which may be quite inefficient.
What are the chances of such MR to be accepted?
The text was updated successfully, but these errors were encountered:
I believe would be quite useful to allow the payload to change owners/container types without moving the data.
functions taking or returning the full [MaybeUninit<T>; N] will still move the data, I'm not sure if adding these functions will allow any performance improvements.
These operations, let's call them
from_parts
/into_parts
, I believe would be quite useful to allow the payload to change owners/container types without moving the data.I don't think
into_array<M>()
can achieve the same because one has to statically know the exact runtime size.I thought about permitting
M
to be up to the capacityN
but into_array would then have to pad the unused remaining space, which may be quite inefficient.What are the chances of such MR to be accepted?
The text was updated successfully, but these errors were encountered: