pub struct SubIndex { /* private fields */ }Expand description
One of the three sub-indexes (signature, semantic, or example).
Implementations§
Source§impl SubIndex
impl SubIndex
pub fn new() -> Self
pub fn add(&mut self, stage_id: StageId, embedding: Embedding)
pub fn remove(&mut self, stage_id: &StageId)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn entries(&self) -> &[IndexEntry]
pub fn entries(&self) -> &[IndexEntry]
Read-only access to all entries (used by near-duplicate scanning).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubIndex
impl RefUnwindSafe for SubIndex
impl Send for SubIndex
impl Sync for SubIndex
impl Unpin for SubIndex
impl UnsafeUnpin for SubIndex
impl UnwindSafe for SubIndex
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