pub struct PatchConflict {
pub hunk_index: usize,
pub expected_line: String,
pub actual_line: String,
pub line_number: usize,
pub conflict_type: ConflictType,
}Expand description
A detected conflict when validating a patch against file content.
Fields§
§hunk_index: usizeIndex of the hunk that conflicts.
expected_line: StringThe line content the patch expected to find.
actual_line: StringThe line content actually present in the file.
line_number: usizeThe line number (1-based) in the original where the conflict was found.
conflict_type: ConflictTypeWhat kind of conflict was detected.
Trait Implementations§
Source§impl Clone for PatchConflict
impl Clone for PatchConflict
Source§fn clone(&self) -> PatchConflict
fn clone(&self) -> PatchConflict
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 PatchConflict
impl Debug for PatchConflict
Source§impl<'de> Deserialize<'de> for PatchConflict
impl<'de> Deserialize<'de> for PatchConflict
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 PatchConflict
impl RefUnwindSafe for PatchConflict
impl Send for PatchConflict
impl Sync for PatchConflict
impl Unpin for PatchConflict
impl UnsafeUnpin for PatchConflict
impl UnwindSafe for PatchConflict
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