#[non_exhaustive]pub struct ConflictRegion {
pub ours_label: String,
pub base_label: Option<String>,
pub theirs_label: String,
pub ours: Vec<String>,
pub base: Option<Vec<String>>,
pub theirs: Vec<String>,
pub marker_len: usize,
/* private fields */
}Expand description
One conflicted region: the lines of each side plus the verbatim marker lines (kept so rendering is byte-exact).
All line vectors store lines with their original endings; the last line of a file may have none.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ours_label: StringLabel after the <<<<<<< marker (e.g. HEAD); empty when absent.
base_label: Option<String>Label after the ||||||| marker; None for 2-way conflicts.
theirs_label: StringLabel after the >>>>>>> marker (e.g. the branch name).
ours: Vec<String>The <<<<<<<-side lines.
base: Option<Vec<String>>The base lines (diff3/zdiff3); None for 2-way conflicts.
theirs: Vec<String>The >>>>>>>-side lines.
marker_len: usizeThe marker run length (7 unless merge.conflictMarkerSize raised it).
Trait Implementations§
Source§impl Clone for ConflictRegion
impl Clone for ConflictRegion
Source§fn clone(&self) -> ConflictRegion
fn clone(&self) -> ConflictRegion
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 ConflictRegion
impl Debug for ConflictRegion
impl Eq for ConflictRegion
Source§impl PartialEq for ConflictRegion
impl PartialEq for ConflictRegion
Source§fn eq(&self, other: &ConflictRegion) -> bool
fn eq(&self, other: &ConflictRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConflictRegion
Auto Trait Implementations§
impl Freeze for ConflictRegion
impl RefUnwindSafe for ConflictRegion
impl Send for ConflictRegion
impl Sync for ConflictRegion
impl Unpin for ConflictRegion
impl UnsafeUnpin for ConflictRegion
impl UnwindSafe for ConflictRegion
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