pub struct MergeReport {
pub base_domains: Vec<String>,
pub incoming_domains: Vec<String>,
pub conflicting_domains: Vec<DomainConflict>,
pub base_predicates: Vec<String>,
pub incoming_predicates: Vec<String>,
pub conflicting_predicates: Vec<PredicateConflict>,
pub merged_variables: Vec<String>,
pub conflicting_variables: Vec<VariableConflict>,
pub strategy: MergeStrategy,
}Expand description
Report of a merge operation.
Fields§
§base_domains: Vec<String>Domains that were added from base
incoming_domains: Vec<String>Domains that were added from incoming
conflicting_domains: Vec<DomainConflict>Domains that had conflicts
base_predicates: Vec<String>Predicates that were added from base
incoming_predicates: Vec<String>Predicates that were added from incoming
conflicting_predicates: Vec<PredicateConflict>Predicates that had conflicts
merged_variables: Vec<String>Variables that were merged
conflicting_variables: Vec<VariableConflict>Variables that had conflicts
strategy: MergeStrategyOverall merge strategy used
Implementations§
Source§impl MergeReport
impl MergeReport
Sourcepub fn new(strategy: MergeStrategy) -> Self
pub fn new(strategy: MergeStrategy) -> Self
Create a new empty merge report.
Sourcepub fn has_conflicts(&self) -> bool
pub fn has_conflicts(&self) -> bool
Check if there were any conflicts during merging.
Sourcepub fn conflict_count(&self) -> usize
pub fn conflict_count(&self) -> usize
Get total number of conflicts.
Sourcepub fn merged_count(&self) -> usize
pub fn merged_count(&self) -> usize
Get total number of merged items.
Trait Implementations§
Source§impl Clone for MergeReport
impl Clone for MergeReport
Source§fn clone(&self) -> MergeReport
fn clone(&self) -> MergeReport
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 moreAuto Trait Implementations§
impl Freeze for MergeReport
impl RefUnwindSafe for MergeReport
impl Send for MergeReport
impl Sync for MergeReport
impl Unpin for MergeReport
impl UnwindSafe for MergeReport
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