pub enum Cleanup {
None,
Semantic {
min_equal_run: usize,
},
}Expand description
Folding of short equal runs into the surrounding edits.
Variants§
None
Keep the edit script as computed.
Semantic
Equal runs shorter than min_equal_run with an insertion or deletion on both sides
are turned into edits, so a lone unchanged item doesn’t sit still while everything
around it changes.
Trait Implementations§
impl Copy for Cleanup
impl Eq for Cleanup
impl StructuralPartialEq for Cleanup
Auto Trait Implementations§
impl Freeze for Cleanup
impl RefUnwindSafe for Cleanup
impl Send for Cleanup
impl Sync for Cleanup
impl Unpin for Cleanup
impl UnsafeUnpin for Cleanup
impl UnwindSafe for Cleanup
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