pub enum MergeStrategy {
HunkOnly,
Semantic,
}Expand description
Strategy a merge call should use for content reconciliation.
Variants§
HunkOnly
Always use heddle-merge::text_hunk_merge on the whole file.
Semantic
Try AST-defined item decomposition first; fall through to
text_hunk_merge for unparseable / unknown-language files.
Trait Implementations§
Source§impl Clone for MergeStrategy
impl Clone for MergeStrategy
Source§fn clone(&self) -> MergeStrategy
fn clone(&self) -> MergeStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MergeStrategy
Source§impl Debug for MergeStrategy
impl Debug for MergeStrategy
impl Eq for MergeStrategy
Source§impl PartialEq for MergeStrategy
impl PartialEq for MergeStrategy
Source§fn eq(&self, other: &MergeStrategy) -> bool
fn eq(&self, other: &MergeStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeStrategy
Auto Trait Implementations§
impl Freeze for MergeStrategy
impl RefUnwindSafe for MergeStrategy
impl Send for MergeStrategy
impl Sync for MergeStrategy
impl Unpin for MergeStrategy
impl UnsafeUnpin for MergeStrategy
impl UnwindSafe for MergeStrategy
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