pub struct MergeFileOptions { /* private fields */ }
Expand description
Options for merging a file.
Implementations§
Source§impl MergeFileOptions
impl MergeFileOptions
Sourcepub fn new() -> MergeFileOptions
pub fn new() -> MergeFileOptions
Creates a default set of merge file options.
Sourcepub fn ancestor_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn ancestor_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for the ancestor file side of the conflict which will be prepended to labels in diff3-format merge files.
Sourcepub fn our_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn our_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for our file side of the conflict which will be prepended to labels in merge files.
Sourcepub fn their_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
pub fn their_label<T: IntoCString>(&mut self, t: T) -> &mut MergeFileOptions
Label for their file side of the conflict which will be prepended to labels in merge files.
Sourcepub fn favor(&mut self, favor: FileFavor) -> &mut MergeFileOptions
pub fn favor(&mut self, favor: FileFavor) -> &mut MergeFileOptions
Specify a side to favor for resolving conflicts
Sourcepub fn style_standard(&mut self, standard: bool) -> &mut MergeFileOptions
pub fn style_standard(&mut self, standard: bool) -> &mut MergeFileOptions
Create standard conflicted merge files
Sourcepub fn style_diff3(&mut self, diff3: bool) -> &mut MergeFileOptions
pub fn style_diff3(&mut self, diff3: bool) -> &mut MergeFileOptions
Create diff3-style file
Sourcepub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeFileOptions
pub fn simplify_alnum(&mut self, simplify: bool) -> &mut MergeFileOptions
Condense non-alphanumeric regions for simplified diff file
Sourcepub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeFileOptions
pub fn ignore_whitespace(&mut self, ignore: bool) -> &mut MergeFileOptions
Ignore all whitespace
Sourcepub fn ignore_whitespace_change(
&mut self,
ignore: bool,
) -> &mut MergeFileOptions
pub fn ignore_whitespace_change( &mut self, ignore: bool, ) -> &mut MergeFileOptions
Ignore changes in amount of whitespace
Sourcepub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeFileOptions
pub fn ignore_whitespace_eol(&mut self, ignore: bool) -> &mut MergeFileOptions
Ignore whitespace at end of line
Sourcepub fn patience(&mut self, patience: bool) -> &mut MergeFileOptions
pub fn patience(&mut self, patience: bool) -> &mut MergeFileOptions
Use the “patience diff” algorithm
Sourcepub fn minimal(&mut self, minimal: bool) -> &mut MergeFileOptions
pub fn minimal(&mut self, minimal: bool) -> &mut MergeFileOptions
Take extra time to find minimal diff
Sourcepub fn style_zdiff3(&mut self, zdiff3: bool) -> &mut MergeFileOptions
pub fn style_zdiff3(&mut self, zdiff3: bool) -> &mut MergeFileOptions
Create zdiff3 (“zealous diff3”)-style files
Sourcepub fn accept_conflicts(&mut self, accept: bool) -> &mut MergeFileOptions
pub fn accept_conflicts(&mut self, accept: bool) -> &mut MergeFileOptions
Do not produce file conflicts when common regions have changed
Sourcepub fn marker_size(&mut self, size: u16) -> &mut MergeFileOptions
pub fn marker_size(&mut self, size: u16) -> &mut MergeFileOptions
The size of conflict markers (eg, “<<<<<<<”). Default is 7.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MergeFileOptions
impl RefUnwindSafe for MergeFileOptions
impl !Send for MergeFileOptions
impl !Sync for MergeFileOptions
impl Unpin for MergeFileOptions
impl UnwindSafe for MergeFileOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more