pub struct ConflictNode {
pub patch_a_id: PatchId,
pub patch_b_id: PatchId,
pub base_patch_id: PatchId,
pub touch_set: TouchSet,
pub description: String,
pub status: ConflictStatus,
}Expand description
A conflict node in the Patch-DAG.
Unlike a regular patch, a conflict node stores references to two conflicting patches and the base state. It can be resolved later by choosing one side or manually merging.
Fields§
§patch_a_id: PatchIdThe patch from branch A.
patch_b_id: PatchIdThe patch from branch B.
base_patch_id: PatchIdThe base (common ancestor) patch ID.
touch_set: TouchSetThe addresses where the conflict occurs.
description: StringHuman-readable description of the conflict.
status: ConflictStatusResolution status.
Implementations§
Trait Implementations§
Source§impl Clone for ConflictNode
impl Clone for ConflictNode
Source§fn clone(&self) -> ConflictNode
fn clone(&self) -> ConflictNode
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 ConflictNode
impl Debug for ConflictNode
Source§impl<'de> Deserialize<'de> for ConflictNode
impl<'de> Deserialize<'de> for ConflictNode
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
Auto Trait Implementations§
impl Freeze for ConflictNode
impl RefUnwindSafe for ConflictNode
impl Send for ConflictNode
impl Sync for ConflictNode
impl Unpin for ConflictNode
impl UnsafeUnpin for ConflictNode
impl UnwindSafe for ConflictNode
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more