pub struct ContainsView<'a> { /* private fields */ }Expand description
Borrowed guard over the heap mirror for batched Self::contains calls.
Obtained from RoaringBitmap::contains_view. Dropping the view ends the underlying
RefCell borrow acquired from RoaringBitmap.
While this view is alive, state-changing methods on the same RoaringBitmap return
BitmapError::BorrowConflict.
Implementations§
Source§impl ContainsView<'_>
impl ContainsView<'_>
Sourcepub fn contains(&self, index: u32) -> bool
pub fn contains(&self, index: u32) -> bool
Tests membership using the RoaringBitmap length and heap mirror captured in
RoaringBitmap::contains_view.
Out-of-range indices yield false (same as RoaringBitmap::contains).
§Time complexity
O(1).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ContainsView<'a>
impl<'a> !Send for ContainsView<'a>
impl<'a> !Sync for ContainsView<'a>
impl<'a> !UnwindSafe for ContainsView<'a>
impl<'a> Freeze for ContainsView<'a>
impl<'a> Unpin for ContainsView<'a>
impl<'a> UnsafeUnpin for ContainsView<'a>
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