pub struct DiffOptions {
pub detect_moves: bool,
pub detect_copies: bool,
pub optimize_arrays: bool,
}Expand description
Options for diff generation.
Fields§
§detect_moves: boolUse move operations for relocated values.
detect_copies: boolUse copy operations for duplicated values.
optimize_arrays: boolOptimize array diffs using LCS (slower but more compact).
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub const fn with_moves(self) -> Self
pub const fn with_moves(self) -> Self
Create options with move detection enabled.
Sourcepub const fn with_copies(self) -> Self
pub const fn with_copies(self) -> Self
Create options with copy detection enabled.
Sourcepub const fn with_array_optimization(self) -> Self
pub const fn with_array_optimization(self) -> Self
Create options with array optimization enabled.
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
Source§impl Default for DiffOptions
impl Default for DiffOptions
Source§fn default() -> DiffOptions
fn default() -> DiffOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin 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