pub struct DiffOptions {
pub p: usize,
pub q: usize,
pub buf_cap: usize,
pub verbose: bool,
pub use_splay: bool,
pub max_table: usize,
}Expand description
Tuning parameters for differencing algorithms.
Fields§
§p: usizeSeed length: minimum match length and fingerprint window (Section 2.1.3).
q: usizeHash table capacity floor; algorithms auto-size upward from input length.
buf_cap: usizeLookback buffer depth for the correcting algorithm (Section 5.2).
verbose: boolPrint per-run statistics to stderr when true.
use_splay: boolUse a Sleator-Tarjan splay tree instead of a hash table for R lookups.
max_table: usizeAuto-sizing ceiling; prevents unbounded memory use on very large inputs.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§fn clone(&self) -> DiffOptions
fn clone(&self) -> DiffOptions
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 DiffOptions
impl Debug for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
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