multiversx_sc_snippets::imports

Function managed_vec_item_save_to_payload_index

Source
pub unsafe fn managed_vec_item_save_to_payload_index<T, P>(
    item: T,
    payload: &mut P,
    index: &mut usize,
)
Expand description

Used by the ManagedVecItem derive.

ยงSafety

Only works correctly if the given index is correct, otherwise undefined behavior is possible.