pub struct ThreeWayMergeResult {
pub merged: String,
pub has_conflicts: bool,
pub conflicts: Vec<Conflict>,
pub stats: MergeStats,
}Expand description
Result of a 3-way merge operation.
Fields§
§merged: StringThe merged document content.
When has_conflicts is true, conflict regions are delimited with
standard markers:
<<<<<<< ours
…our lines…
=======
…their lines…
>>>>>>> theirshas_conflicts: booltrue when at least one conflict was detected and could not be
auto-merged.
conflicts: Vec<Conflict>Details of each conflict region.
stats: MergeStatsSummary statistics for the merge.
Trait Implementations§
Source§impl Clone for ThreeWayMergeResult
impl Clone for ThreeWayMergeResult
Source§fn clone(&self) -> ThreeWayMergeResult
fn clone(&self) -> ThreeWayMergeResult
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 ThreeWayMergeResult
impl Debug for ThreeWayMergeResult
Source§impl<'de> Deserialize<'de> for ThreeWayMergeResult
impl<'de> Deserialize<'de> for ThreeWayMergeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ThreeWayMergeResult
impl RefUnwindSafe for ThreeWayMergeResult
impl Send for ThreeWayMergeResult
impl Sync for ThreeWayMergeResult
impl Unpin for ThreeWayMergeResult
impl UnsafeUnpin for ThreeWayMergeResult
impl UnwindSafe for ThreeWayMergeResult
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