pub struct MergeOptions { /* private fields */ }
Expand description
A collection of options for modifying the way a merge is performed
Implementations§
source§impl MergeOptions
impl MergeOptions
sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new MergeOptions
with default settings
§Defaults
- conflict_marker_length = 7
- style = ConflictStyle::Diff3
sourcepub fn set_conflict_marker_length(
&mut self,
conflict_marker_length: usize,
) -> &mut Self
pub fn set_conflict_marker_length( &mut self, conflict_marker_length: usize, ) -> &mut Self
Set the length of the conflict markers used when displaying a merge conflict
sourcepub fn set_conflict_style(&mut self, style: ConflictStyle) -> &mut Self
pub fn set_conflict_style(&mut self, style: ConflictStyle) -> &mut Self
Set the conflict style used when displaying a merge conflict
Trait Implementations§
source§impl Debug for MergeOptions
impl Debug for MergeOptions
Auto Trait Implementations§
impl Freeze for MergeOptions
impl RefUnwindSafe for MergeOptions
impl Send for MergeOptions
impl Sync for MergeOptions
impl Unpin for MergeOptions
impl UnwindSafe for MergeOptions
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