Function apriltag_sys::zarray_vmap

source ·
pub unsafe extern "C" fn zarray_vmap(
    za: *mut zarray_t,
    f: Option<unsafe extern "C" fn()>
)
Expand description

Calls the supplied function for every element in the array in index order. HOWEVER values are passed to the function, not pointers to values. In the case where the zarray stores object pointers, zarray_vmap allows you to pass in the object’s destroy function (or free) directly. Can only be used with zarray’s which contain pointer data. The map function should have the following format:

void map_function(element_type *element)