#[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.
serde wire shape. Under the optional serde feature this serializes to
exactly its public fields — the labels, the three sides, and
marker_len. The private verbatim marker lines are
skipped: they exist only so render can reproduce the file byte-for-byte,
they are not part of the modelled conflict, and emitting them would publish an
implementation detail on the wire. Nothing the public model carries is lost.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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§impl Serialize for ConflictRegion
Available on crate feature serde only.
impl Serialize for ConflictRegion
serde only.