pub struct PreScreenResult {
pub candidates: Vec<usize>,
pub unique: Vec<usize>,
pub total: usize,
}Expand description
Pre-screening results from the bloom filter pass.
Fields§
§candidates: Vec<usize>Indices of items that are potential duplicates (bloom filter hit).
unique: Vec<usize>Indices of items that are definitely unique (bloom filter miss).
total: usizeTotal items processed.
Implementations§
Source§impl PreScreenResult
impl PreScreenResult
Sourcepub fn candidate_rate(&self) -> f64
pub fn candidate_rate(&self) -> f64
Fraction of items that passed as candidates (potential duplicates).
Sourcepub fn rejection_rate(&self) -> f64
pub fn rejection_rate(&self) -> f64
Fraction of items rejected as unique.
Trait Implementations§
Source§impl Clone for PreScreenResult
impl Clone for PreScreenResult
Source§fn clone(&self) -> PreScreenResult
fn clone(&self) -> PreScreenResult
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 moreAuto Trait Implementations§
impl Freeze for PreScreenResult
impl RefUnwindSafe for PreScreenResult
impl Send for PreScreenResult
impl Sync for PreScreenResult
impl Unpin for PreScreenResult
impl UnsafeUnpin for PreScreenResult
impl UnwindSafe for PreScreenResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more