pub struct PathConflict {
pub path: PathBuf,
pub sides: [PatchValue; 2],
pub reason: ConflictReason,
}Expand description
A conflict on a single path during join.
Contains both sides so callers can inspect what each patch-set wanted to do and decide on a resolution strategy.
sides is always sorted (by PatchValue’s Ord-equivalent canonical
JSON) to guarantee commutativity.
Fields§
§path: PathBufThe path where the conflict occurred.
sides: [PatchValue; 2]What the two patch-sets each wanted to do to this path. Always exactly 2 elements, sorted for determinism.
reason: ConflictReasonHuman-readable reason for the conflict.
Trait Implementations§
Source§impl Clone for PathConflict
impl Clone for PathConflict
Source§fn clone(&self) -> PathConflict
fn clone(&self) -> PathConflict
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 PathConflict
impl Debug for PathConflict
Source§impl<'de> Deserialize<'de> for PathConflict
impl<'de> Deserialize<'de> for PathConflict
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
Source§impl PartialEq for PathConflict
impl PartialEq for PathConflict
Source§impl Serialize for PathConflict
impl Serialize for PathConflict
impl Eq for PathConflict
impl StructuralPartialEq for PathConflict
Auto Trait Implementations§
impl Freeze for PathConflict
impl RefUnwindSafe for PathConflict
impl Send for PathConflict
impl Sync for PathConflict
impl Unpin for PathConflict
impl UnsafeUnpin for PathConflict
impl UnwindSafe for PathConflict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.