pub struct UniqueIndex { /* private fields */ }Expand description
Unique-constraint helper index mapping hash bucket keys to sorted doc ID candidates.
Collisions are expected with 32-bit hashes; caller-side value verification must enforce exact-value uniqueness before insert.
Implementations§
Source§impl UniqueIndex
impl UniqueIndex
Sourcepub fn add(&mut self, hash: u32, doc_id: DocId)
pub fn add(&mut self, hash: u32, doc_id: DocId)
Add a document candidate to a hash bucket, maintaining sorted order.
Sourcepub fn remove(&mut self, hash: u32, doc_id: DocId)
pub fn remove(&mut self, hash: u32, doc_id: DocId)
Remove a document from a hash bucket. No-op if not present.
Trait Implementations§
Source§impl Debug for UniqueIndex
impl Debug for UniqueIndex
Source§impl Default for UniqueIndex
impl Default for UniqueIndex
Source§fn default() -> UniqueIndex
fn default() -> UniqueIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UniqueIndex
impl RefUnwindSafe for UniqueIndex
impl Send for UniqueIndex
impl Sync for UniqueIndex
impl Unpin for UniqueIndex
impl UnsafeUnpin for UniqueIndex
impl UnwindSafe for UniqueIndex
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