pub enum PatchConflict {
RevisionMismatch {
expected: String,
actual: String,
},
InvalidRange {
index: usize,
start_line: usize,
end_line: usize,
line_count: usize,
},
NotSorted {
index: usize,
prev_start: usize,
start: usize,
},
Overlap {
index: usize,
prev_end: usize,
start: usize,
},
}Variants§
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 Display for PatchConflict
impl Display for PatchConflict
Source§impl Error for PatchConflict
impl Error for PatchConflict
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PatchConflict
impl PartialEq for PatchConflict
impl Eq for PatchConflict
impl StructuralPartialEq for PatchConflict
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