[][src]Function croaring_sys::roaring_iterate

pub unsafe extern "C" fn roaring_iterate(
    ra: *const roaring_bitmap_t,
    iterator: roaring_iterator,
    ptr: *mut c_void
) -> bool

Iterate over the bitmap elements. The function iterator is called once for all the values with ptr (can be NULL) as the second parameter of each call.

roaring_iterator is simply a pointer to a function that returns bool (true means that the iteration should continue while false means that it should stop), and takes (uint32_t,void*) as inputs.

Returns true if the roaring_iterator returned true throughout (so that all data points were necessarily visited).