pub enum PatchError {
HunkMismatch {
hunk: usize,
expected: String,
found: String,
},
OffsetOutOfBounds {
hunk: usize,
offset: usize,
},
ParseError(String),
}Expand description
Error kinds for patch application.
Variants§
Trait Implementations§
Source§impl Clone for PatchError
impl Clone for PatchError
Source§fn clone(&self) -> PatchError
fn clone(&self) -> PatchError
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 PatchError
impl Debug for PatchError
Source§impl PartialEq for PatchError
impl PartialEq for PatchError
impl StructuralPartialEq for PatchError
Auto Trait Implementations§
impl Freeze for PatchError
impl RefUnwindSafe for PatchError
impl Send for PatchError
impl Sync for PatchError
impl Unpin for PatchError
impl UnsafeUnpin for PatchError
impl UnwindSafe for PatchError
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