pub enum PatchErrorKind {
BadHunkHeader,
HunkWithoutFile,
UnexpectedEnd,
BadHunkLine,
TooLarge,
}Expand description
Why a patch did not parse.
Variants§
BadHunkHeader
An @@ line that is not @@ -a[,b] +c[,d] @@.
HunkWithoutFile
A hunk before any file header.
UnexpectedEnd
The patch ends before a hunk has all the lines its header announces.
BadHunkLine
A hunk line that does not start with , -, + or \, or more lines of one side than
the header announces.
TooLarge
A line number past u32::MAX.
Trait Implementations§
Source§impl Clone for PatchErrorKind
impl Clone for PatchErrorKind
impl Copy for PatchErrorKind
Source§impl Debug for PatchErrorKind
impl Debug for PatchErrorKind
impl Eq for PatchErrorKind
Source§impl PartialEq for PatchErrorKind
impl PartialEq for PatchErrorKind
impl StructuralPartialEq for PatchErrorKind
Auto Trait Implementations§
impl Forget for PatchErrorKind
impl Freeze for PatchErrorKind
impl Move for PatchErrorKind
impl RefUnwindSafe for PatchErrorKind
impl Send for PatchErrorKind
impl Sync for PatchErrorKind
impl Unpin for PatchErrorKind
impl UnsafeUnpin for PatchErrorKind
impl UnwindSafe for PatchErrorKind
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