pub struct DuplicateCluster {
pub id: usize,
pub indices: Vec<usize>,
pub representative: usize,
}Expand description
A cluster of duplicate documents.
Fields§
§id: usizeCluster ID (sequential from 0).
indices: Vec<usize>Document indices in this cluster.
representative: usizeRepresentative index (first in cluster).
Implementations§
Source§impl DuplicateCluster
impl DuplicateCluster
Sourcepub fn is_duplicate(&self) -> bool
pub fn is_duplicate(&self) -> bool
Check if cluster has duplicates.
Trait Implementations§
Source§impl Clone for DuplicateCluster
impl Clone for DuplicateCluster
Source§fn clone(&self) -> DuplicateCluster
fn clone(&self) -> DuplicateCluster
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DuplicateCluster
impl Debug for DuplicateCluster
Source§impl PartialEq for DuplicateCluster
impl PartialEq for DuplicateCluster
impl StructuralPartialEq for DuplicateCluster
Auto Trait Implementations§
impl Freeze for DuplicateCluster
impl RefUnwindSafe for DuplicateCluster
impl Send for DuplicateCluster
impl Sync for DuplicateCluster
impl Unpin for DuplicateCluster
impl UnsafeUnpin for DuplicateCluster
impl UnwindSafe for DuplicateCluster
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