pub struct RoarPostings(pub RoaringBitmap);Tuple Fields§
§0: RoaringBitmapTrait Implementations§
Source§impl Clone for RoarPostings
impl Clone for RoarPostings
Source§impl Debug for RoarPostings
impl Debug for RoarPostings
Source§impl Default for RoarPostings
impl Default for RoarPostings
Source§impl Postings for RoarPostings
impl Postings for RoarPostings
fn empty() -> Self
Source§fn from_sorted(ids: &[u32]) -> Self
fn from_sorted(ids: &[u32]) -> Self
Build from strictly-ascending, de-duplicated ids (the natural order of an inverted index).
fn insert(&mut self, id: u32)
fn contains(&self, id: u32) -> bool
fn len(&self) -> usize
Source§fn or_inplace(&mut self, other: &Self)
fn or_inplace(&mut self, other: &Self)
in-place ∪ (the
|= of the build/OR loop)Source§fn native_bytes(&self) -> usize
fn native_bytes(&self) -> usize
byte size of this set’s native serialized form (memory proxy)
fn is_empty(&self) -> bool
Source§fn serialize_deltagap(&self) -> Vec<u8> ⓘ
fn serialize_deltagap(&self) -> Vec<u8> ⓘ
varint delta-gap of the sorted ids — byte-identical to the TS/Python parts store.
Source§fn deserialize_deltagap(bytes: &[u8]) -> Selfwhere
Self: Sized,
fn deserialize_deltagap(bytes: &[u8]) -> Selfwhere
Self: Sized,
inverse of
serialize_deltagapAuto Trait Implementations§
impl Freeze for RoarPostings
impl RefUnwindSafe for RoarPostings
impl Send for RoarPostings
impl Sync for RoarPostings
impl Unpin for RoarPostings
impl UnsafeUnpin for RoarPostings
impl UnwindSafe for RoarPostings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.