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