pub struct DiffParams {
pub align: AlignParams,
pub fork: ForkParams,
}Expand description
Everything tunable about a diff, one level up: the aligner’s gap penalties and the fork
rule’s threshold/recovery window. Default is the dev-calibrated configuration.
Fields§
§align: AlignParams§fork: ForkParamsImplementations§
Source§impl DiffParams
impl DiffParams
Sourcepub fn validated(self) -> Result<Self, ParamError>
pub fn validated(self) -> Result<Self, ParamError>
Check every engine invariant at once — the one call a boundary makes before handing
user-supplied values to crate::diff.
§Errors
The first violated invariant, as a ParamError.
Trait Implementations§
Source§impl Clone for DiffParams
impl Clone for DiffParams
Source§fn clone(&self) -> DiffParams
fn clone(&self) -> DiffParams
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 moreimpl Copy for DiffParams
Source§impl Debug for DiffParams
impl Debug for DiffParams
Source§impl Default for DiffParams
impl Default for DiffParams
Source§fn default() -> DiffParams
fn default() -> DiffParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for DiffParams
impl PartialEq for DiffParams
impl StructuralPartialEq for DiffParams
Auto Trait Implementations§
impl Freeze for DiffParams
impl RefUnwindSafe for DiffParams
impl Send for DiffParams
impl Sync for DiffParams
impl Unpin for DiffParams
impl UnsafeUnpin for DiffParams
impl UnwindSafe for DiffParams
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