pub struct OverlapThresholds {
pub min_overlap_chars: usize,
pub short_chunk_threshold: usize,
pub consecutive_duplicate_threshold: usize,
}Expand description
Configuration for strong overlap detection.
This struct holds the tunable thresholds that determine when an overlap is “strong enough” to warrant deduplication.
Fields§
§min_overlap_chars: usizeMinimum character count for overlap
short_chunk_threshold: usizeThreshold below which chunks are considered “short”
consecutive_duplicate_threshold: usizeNumber of consecutive duplicates before aggressive dedupe
Trait Implementations§
Source§impl Clone for OverlapThresholds
impl Clone for OverlapThresholds
Source§fn clone(&self) -> OverlapThresholds
fn clone(&self) -> OverlapThresholds
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 OverlapThresholds
impl Debug for OverlapThresholds
Source§impl Default for OverlapThresholds
impl Default for OverlapThresholds
impl Copy for OverlapThresholds
Auto Trait Implementations§
impl Freeze for OverlapThresholds
impl RefUnwindSafe for OverlapThresholds
impl Send for OverlapThresholds
impl Sync for OverlapThresholds
impl Unpin for OverlapThresholds
impl UnwindSafe for OverlapThresholds
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