Struct croaring_sys::roaring_uint32_iterator_s
source · [−]#[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: u32Trait Implementations
sourceimpl Clone for roaring_uint32_iterator_s
impl Clone for roaring_uint32_iterator_s
sourcefn clone(&self) -> roaring_uint32_iterator_s
fn clone(&self) -> roaring_uint32_iterator_s
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for roaring_uint32_iterator_s
impl Debug for roaring_uint32_iterator_s
impl Copy for roaring_uint32_iterator_s
Auto Trait Implementations
impl RefUnwindSafe for roaring_uint32_iterator_s
impl !Send for roaring_uint32_iterator_s
impl !Sync for roaring_uint32_iterator_s
impl Unpin for roaring_uint32_iterator_s
impl UnwindSafe for roaring_uint32_iterator_s
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more