pub struct RationerBuilder { /* private fields */ }Expand description
Builder for Rationer. Configure once, then .build().
Implementations§
Source§impl RationerBuilder
impl RationerBuilder
Sourcepub fn concurrency(self, c: Concurrency) -> Self
pub fn concurrency(self, c: Concurrency) -> Self
Pick a backend. See Concurrency.
Sourcepub fn threads(self, n: usize) -> Self
pub fn threads(self, n: usize) -> Self
Set the rayon worker count for CPU-side work (filtering, per-pair recursion, assemble).
None (default) uses the global rayon pool. Some(1) forces single-threaded execution.
Sourcepub fn delta(self, d: f64) -> Self
pub fn delta(self, d: f64) -> Self
Approximate-RO knob (Phase 3). delta = 0.0 (default) means exact Ratcliff-Obershelp
— bit-identical to Python difflib. delta ∈ (0, 1] trades a bounded amount of accuracy
for fewer chain walks inside longest_in: the suffix-link chain is capped at roughly
1/√delta ascensions, which empirically only fires on the long-tail (p99+) cases.
Property-tested in tests/approx_ro.rs: actual worst-case absolute RO deviation
stays below delta on canonical-Python corpora (typically several times tighter).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RationerBuilder
impl RefUnwindSafe for RationerBuilder
impl Send for RationerBuilder
impl Sync for RationerBuilder
impl Unpin for RationerBuilder
impl UnsafeUnpin for RationerBuilder
impl UnwindSafe for RationerBuilder
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
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>
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>
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