multiversx_sc_scenario::imports

Function managed_vec_item_read_from_payload_index

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

Used by the ManagedVecItem derive.

ยงSafety

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