pub enum ConflictSegment {
Text(Vec<String>),
Conflict(Box<ConflictRegion>),
}Expand description
A conflicted file as a sequence of plain-text runs and conflict regions —
the shape that keeps render a byte-exact roundtrip.
Variants§
Text(Vec<String>)
Lines outside any conflict (verbatim, endings included).
Conflict(Box<ConflictRegion>)
One conflicted region (boxed — much larger than a text run).
Trait Implementations§
Source§impl Clone for ConflictSegment
impl Clone for ConflictSegment
Source§fn clone(&self) -> ConflictSegment
fn clone(&self) -> ConflictSegment
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 ConflictSegment
impl Debug for ConflictSegment
impl Eq for ConflictSegment
Source§impl PartialEq for ConflictSegment
impl PartialEq for ConflictSegment
Source§fn eq(&self, other: &ConflictSegment) -> bool
fn eq(&self, other: &ConflictSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConflictSegment
Auto Trait Implementations§
impl Freeze for ConflictSegment
impl RefUnwindSafe for ConflictSegment
impl Send for ConflictSegment
impl Sync for ConflictSegment
impl Unpin for ConflictSegment
impl UnsafeUnpin for ConflictSegment
impl UnwindSafe for ConflictSegment
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