pub struct ConflictLog { /* private fields */ }Expand description
Log of conflicts and warnings encountered during merge.
Implementations§
Source§impl ConflictLog
impl ConflictLog
Sourcepub fn path_string(&self) -> String
pub fn path_string(&self) -> String
Returns the current path as a string.
Sourcepub fn add_list_conflict(
&mut self,
conflict_type: ConflictType,
text: &str,
base: Option<NodeRef>,
branch_a: Option<NodeRef>,
branch_b: Option<NodeRef>,
)
pub fn add_list_conflict( &mut self, conflict_type: ConflictType, text: &str, base: Option<NodeRef>, branch_a: Option<NodeRef>, branch_b: Option<NodeRef>, )
Adds a list-level conflict.
Sourcepub fn add_list_warning(
&mut self,
conflict_type: ConflictType,
text: &str,
base: Option<NodeRef>,
branch_a: Option<NodeRef>,
branch_b: Option<NodeRef>,
)
pub fn add_list_warning( &mut self, conflict_type: ConflictType, text: &str, base: Option<NodeRef>, branch_a: Option<NodeRef>, branch_b: Option<NodeRef>, )
Adds a list-level warning.
Sourcepub fn add_node_conflict(
&mut self,
conflict_type: ConflictType,
text: &str,
base: Option<NodeRef>,
branch_a: Option<NodeRef>,
branch_b: Option<NodeRef>,
)
pub fn add_node_conflict( &mut self, conflict_type: ConflictType, text: &str, base: Option<NodeRef>, branch_a: Option<NodeRef>, branch_b: Option<NodeRef>, )
Adds a node-level conflict.
Sourcepub fn add_node_warning(
&mut self,
conflict_type: ConflictType,
text: &str,
base: Option<NodeRef>,
branch_a: Option<NodeRef>,
branch_b: Option<NodeRef>,
)
pub fn add_node_warning( &mut self, conflict_type: ConflictType, text: &str, base: Option<NodeRef>, branch_a: Option<NodeRef>, branch_b: Option<NodeRef>, )
Adds a node-level warning.
Sourcepub fn has_conflicts(&self) -> bool
pub fn has_conflicts(&self) -> bool
Returns true if there are any conflicts.
Sourcepub fn conflict_count(&self) -> usize
pub fn conflict_count(&self) -> usize
Returns the number of conflicts.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Returns the number of warnings.
Trait Implementations§
Source§impl Debug for ConflictLog
impl Debug for ConflictLog
Source§impl Default for ConflictLog
impl Default for ConflictLog
Source§fn default() -> ConflictLog
fn default() -> ConflictLog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConflictLog
impl !RefUnwindSafe for ConflictLog
impl !Send for ConflictLog
impl !Sync for ConflictLog
impl Unpin for ConflictLog
impl !UnwindSafe for ConflictLog
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