pub struct OverlapScore {
pub char_count: usize,
pub ratio_met: bool,
pub is_safe_boundary: bool,
}Expand description
Score representing the “strength” of an overlap.
This struct captures multiple metrics about an overlap to determine if it’s strong enough to warrant deduplication.
Fields§
§char_count: usizeCharacter count of the overlap
ratio_met: boolWhether the overlap meets the minimum ratio threshold
is_safe_boundary: boolWhether the overlap ends at a safe boundary
Implementations§
Source§impl OverlapScore
impl OverlapScore
Sourcepub const fn meets_thresholds(&self, thresholds: &OverlapThresholds) -> bool
pub const fn meets_thresholds(&self, thresholds: &OverlapThresholds) -> bool
Trait Implementations§
Source§impl Clone for OverlapScore
impl Clone for OverlapScore
Source§fn clone(&self) -> OverlapScore
fn clone(&self) -> OverlapScore
Returns a duplicate of the value. Read more
1.0.0 · 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 OverlapScore
impl Debug for OverlapScore
Source§impl PartialEq for OverlapScore
impl PartialEq for OverlapScore
impl Copy for OverlapScore
impl Eq for OverlapScore
impl StructuralPartialEq for OverlapScore
Auto Trait Implementations§
impl Freeze for OverlapScore
impl RefUnwindSafe for OverlapScore
impl Send for OverlapScore
impl Sync for OverlapScore
impl Unpin for OverlapScore
impl UnwindSafe for OverlapScore
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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