pub unsafe fn managed_vec_item_save_to_payload_index<T, P>(
item: T,
payload: &mut P,
index: &mut usize,
)where
T: ManagedVecItem,
P: ManagedVecItemPayload,
Expand description
Used by the ManagedVecItem derive.
ยงSafety
Only works correctly if the given index is correct, otherwise undefined behavior is possible.