#[non_exhaustive]pub enum MergeProbe {
Clean,
Conflicts(Vec<String>),
}Expand description
The outcome of a try_merge probe. The probe
itself is rolled back before it returns, whatever the outcome — this only
reports what a real merge would do.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clean
The merge would apply without conflicts.
Conflicts(Vec<String>)
The merge would conflict in these paths (repo-relative, / separators —
the same contract as conflicted_files).
Implementations§
Trait Implementations§
Source§impl Clone for MergeProbe
impl Clone for MergeProbe
Source§fn clone(&self) -> MergeProbe
fn clone(&self) -> MergeProbe
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 moreSource§impl Debug for MergeProbe
impl Debug for MergeProbe
impl Eq for MergeProbe
Source§impl PartialEq for MergeProbe
impl PartialEq for MergeProbe
Source§fn eq(&self, other: &MergeProbe) -> bool
fn eq(&self, other: &MergeProbe) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MergeProbe
impl Serialize for MergeProbe
impl StructuralPartialEq for MergeProbe
Auto Trait Implementations§
impl Freeze for MergeProbe
impl RefUnwindSafe for MergeProbe
impl Send for MergeProbe
impl Sync for MergeProbe
impl Unpin for MergeProbe
impl UnsafeUnpin for MergeProbe
impl UnwindSafe for MergeProbe
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