pub struct RoaringBitmap { /* private fields */ }Expand description
Roaring Bitmap for compressed integer sets
Implementations§
Source§impl RoaringBitmap
impl RoaringBitmap
Sourcepub fn from_sorted_slice(values: &[u32]) -> Self
pub fn from_sorted_slice(values: &[u32]) -> Self
Create from sorted slice
Sourcepub fn cardinality(&self) -> u32
pub fn cardinality(&self) -> u32
Number of elements
Sourcepub fn and(&self, other: &RoaringBitmap) -> RoaringBitmap
pub fn and(&self, other: &RoaringBitmap) -> RoaringBitmap
Intersection with another bitmap
Sourcepub fn or(&self, other: &RoaringBitmap) -> RoaringBitmap
pub fn or(&self, other: &RoaringBitmap) -> RoaringBitmap
Union with another bitmap
Sourcepub fn deserialize<R: Read>(reader: &mut R) -> Result<Self>
pub fn deserialize<R: Read>(reader: &mut R) -> Result<Self>
Deserialize
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Approximate size in bytes
Sourcepub fn iter(&self) -> RoaringIterator<'_> ⓘ
pub fn iter(&self) -> RoaringIterator<'_> ⓘ
Create an iterator
Trait Implementations§
Source§impl Clone for RoaringBitmap
impl Clone for RoaringBitmap
Source§fn clone(&self) -> RoaringBitmap
fn clone(&self) -> RoaringBitmap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoaringBitmap
impl Debug for RoaringBitmap
Auto Trait Implementations§
impl Freeze for RoaringBitmap
impl RefUnwindSafe for RoaringBitmap
impl Send for RoaringBitmap
impl Sync for RoaringBitmap
impl Unpin for RoaringBitmap
impl UnwindSafe for RoaringBitmap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more