pub struct Merge {
pub conflict_log: ConflictLog,
pub edit_log: EditLog,
/* private fields */
}Expand description
The main merge struct that orchestrates the 3-way merge.
Fields§
§conflict_log: ConflictLogLog of conflicts encountered during merge.
edit_log: EditLogLog of edit operations performed.
Implementations§
Source§impl Merge
impl Merge
Sourcepub fn new(matching: TriMatching) -> Self
pub fn new(matching: TriMatching) -> Self
Creates a new Merge from a TriMatching.
Sourcepub fn matching(&self) -> &TriMatching
pub fn matching(&self) -> &TriMatching
Returns a reference to the tri-matching.
Sourcepub fn merge<W: Write>(&mut self, writer: &mut W) -> Result<()>
pub fn merge<W: Write>(&mut self, writer: &mut W) -> Result<()>
Runs the 3-way merge and writes the result.
The output is written as XML to the provided writer.
Sourcepub fn merge_to_tree(&mut self) -> NodeRef
pub fn merge_to_tree(&mut self) -> NodeRef
Runs the 3-way merge and returns the merged tree.
This is useful when you need to programmatically inspect or further modify the merge result before output.
Auto Trait Implementations§
impl Freeze for Merge
impl !RefUnwindSafe for Merge
impl !Send for Merge
impl !Sync for Merge
impl Unpin for Merge
impl !UnwindSafe for Merge
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