pub enum HunkInsertionError {
NonAdjacentHunk {
incoming_line: usize,
last_line: usize,
},
PriorLine {
incoming_line: usize,
last_line: usize,
},
PriorColumn {
incoming_col: usize,
incoming_line: usize,
last_col: usize,
last_line: usize,
},
}
Expand description
Types of errors that come up when inserting an entry to a hunk
Variants§
Trait Implementations§
Source§impl Debug for HunkInsertionError
impl Debug for HunkInsertionError
Source§impl Display for HunkInsertionError
impl Display for HunkInsertionError
Source§impl Error for HunkInsertionError
impl Error for HunkInsertionError
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()
Auto Trait Implementations§
impl Freeze for HunkInsertionError
impl RefUnwindSafe for HunkInsertionError
impl Send for HunkInsertionError
impl Sync for HunkInsertionError
impl Unpin for HunkInsertionError
impl UnwindSafe for HunkInsertionError
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