pub struct FileOptions {
pub ignore_space: IgnoreSpace,
pub ignore_eol_style: bool,
pub show_c_function: bool,
}Expand description
File options for diff operations
Fields§
§ignore_space: IgnoreSpaceIgnore whitespace changes
ignore_eol_style: boolIgnore end-of-line differences
show_c_function: boolShow function context
Implementations§
Source§impl FileOptions
impl FileOptions
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 FileOptions
impl Clone for FileOptions
Source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
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 FileOptions
impl Debug for FileOptions
Source§impl Default for FileOptions
impl Default for FileOptions
Source§fn default() -> FileOptions
fn default() -> FileOptions
Returns the “default value” for a type. Read more
impl Copy for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnsafeUnpin for FileOptions
impl UnwindSafe for FileOptions
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