#[repr(C)]
pub struct roaring_uint32_iterator_s { pub parent: *const roaring_bitmap_t, pub container_index: i32, pub in_container_index: i32, pub run_index: i32, pub current_value: u32, pub has_value: bool, pub container: *const c_void, pub typecode: u8, pub highbits: u32, }
Expand description

What follows is code use to iterate through values in a roaring bitmap

roaring_bitmap_t *r =… roaring_uint32_iterator_t i; roaring_create_iterator(r, &i); while(i.has_value) { printf(“value = %d\n”, i.current_value); roaring_advance_uint32_iterator(&i); }

Obviously, if you modify the underlying bitmap, the iterator becomes invalid. So don’t.

Fields

parent: *const roaring_bitmap_tcontainer_index: i32in_container_index: i32run_index: i32current_value: u32has_value: boolcontainer: *const c_voidtypecode: u8highbits: u32

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.