pub struct DiffOptions {
pub ignore_whitespace: bool,
pub ignore_eol_style: bool,
pub show_c_function: bool,
}Expand description
Options for diff operations
Fields§
§ignore_whitespace: boolIgnore changes in whitespace
ignore_eol_style: boolIgnore changes in end-of-line style
show_c_function: boolShow context around changes
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn with_ignore_whitespace(self, ignore: bool) -> Self
pub fn with_ignore_whitespace(self, ignore: bool) -> Self
Sets whether to ignore whitespace changes.
Sourcepub fn with_ignore_eol_style(self, ignore: bool) -> Self
pub fn with_ignore_eol_style(self, ignore: bool) -> Self
Sets whether to ignore end-of-line style differences.
Sourcepub fn with_show_c_function(self, show: bool) -> Self
pub fn with_show_c_function(self, show: bool) -> Self
Sets whether to show C function names in context.
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
impl Copy 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