pub enum MoveGap {
Absolute(usize),
Relative(f64),
}Expand description
How many real content changes are tolerated inside an otherwise-moved
block before move detection gives up extending into that block (lines
beyond this fall back to plain +/-).
Accepts either an absolute line count or a fraction/percentage of the remaining block length in whichever direction extension is currently going — a flat count under-tolerates large moved blocks that picked up a handful of real edits, while a fraction scales with the block.
Parsed from a string: a trailing % means relative ("10%" → 0.10), a
bare value < 1 is also relative ("0.1" is the same as "10%"), and
a bare value >= 1 is an absolute count ("2" → tolerate 2 lines).
Variants§
Trait Implementations§
impl Copy for MoveGap
impl StructuralPartialEq for MoveGap
Auto Trait Implementations§
impl Freeze for MoveGap
impl RefUnwindSafe for MoveGap
impl Send for MoveGap
impl Sync for MoveGap
impl Unpin for MoveGap
impl UnsafeUnpin for MoveGap
impl UnwindSafe for MoveGap
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