Function pact_matching_ffi::models::provider_state::provider_state_param_iter_next [−][src]
#[no_mangle] pub extern "C" fn provider_state_param_iter_next(
iter: *mut ProviderStateParamIterator
) -> *mut ProviderStateParamPair
Expand description
Get the next key and value out of the iterator, if possible
Returns a pointer to a heap allocated array of 2 elements, the pointer to the key string on the heap, and the pointer to the value string on the heap.
Safety
The underlying data must not be modified during iteration.
The user needs to free both the contained strings and the array.
Error Handling
Returns NULL if there’s no further elements or the iterator is NULL.