[][src]Struct croaring_sys::roaring_uint32_iterator_s

#[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,
}

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

roaring_bitmap_t *ra =... roaring_uint32_iterator_t i; roaring_create_iterator(ra, &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

impl Clone for roaring_uint32_iterator_s[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for roaring_uint32_iterator_s[src]

impl Debug for roaring_uint32_iterator_s[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]