pub struct SortedIndex { /* private fields */ }Expand description
Sorted index backed by a BTreeMap for numeric range queries.
Implementations§
Source§impl SortedIndex
impl SortedIndex
Sourcepub fn add(&mut self, key: f64, doc_id: DocId)
pub fn add(&mut self, key: f64, doc_id: DocId)
Add a document to a sorted bucket, maintaining sorted order within the bucket.
Sourcepub fn remove(&mut self, key: f64, doc_id: DocId)
pub fn remove(&mut self, key: f64, doc_id: DocId)
Remove a document from a sorted bucket. No-op if not present.
Trait Implementations§
Source§impl Debug for SortedIndex
impl Debug for SortedIndex
Source§impl Default for SortedIndex
impl Default for SortedIndex
Source§fn default() -> SortedIndex
fn default() -> SortedIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SortedIndex
impl RefUnwindSafe for SortedIndex
impl Send for SortedIndex
impl Sync for SortedIndex
impl Unpin for SortedIndex
impl UnsafeUnpin for SortedIndex
impl UnwindSafe for SortedIndex
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