pub struct Conflict {
pub number: usize,
pub ours: ConflictSide,
pub base: Option<ConflictSide>,
pub theirs: ConflictSide,
pub end_line: usize,
}Expand description
One conflict block.
Fields§
§number: usize1-based, in file order.
ours: ConflictSideOurs: between <<<<<<< and ||||||| or =======.
base: Option<ConflictSide>The common ancestor, in diff3 style: between ||||||| and =======.
theirs: ConflictSideTheirs: between ======= and >>>>>>>. Its label is the one on
the closing >>>>>>> marker.
end_line: usizeThe 1-based line of the closing >>>>>>> marker.
Implementations§
Trait Implementations§
impl Eq for Conflict
impl StructuralPartialEq for Conflict
Auto Trait Implementations§
impl Freeze for Conflict
impl RefUnwindSafe for Conflict
impl Send for Conflict
impl Sync for Conflict
impl Unpin for Conflict
impl UnsafeUnpin for Conflict
impl UnwindSafe for Conflict
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.