pub enum ApplyPatchError {
ParseError(ParseError),
IoError(IoError),
ComputeReplacements(String),
ImplicitInvocation,
}Variants§
ParseError(ParseError)
IoError(IoError)
ComputeReplacements(String)
Error that occurs while computing replacements when applying patch chunks
ImplicitInvocation
A raw patch body was provided without an explicit apply_patch invocation.
Trait Implementations§
Source§impl Debug for ApplyPatchError
impl Debug for ApplyPatchError
Source§impl Display for ApplyPatchError
impl Display for ApplyPatchError
Source§impl Error for ApplyPatchError
impl Error for ApplyPatchError
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 From<&Error> for ApplyPatchError
impl From<&Error> for ApplyPatchError
Source§impl From<Error> for ApplyPatchError
impl From<Error> for ApplyPatchError
Source§impl From<IoError> for ApplyPatchError
impl From<IoError> for ApplyPatchError
Source§impl From<ParseError> for ApplyPatchError
impl From<ParseError> for ApplyPatchError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ApplyPatchError
impl PartialEq for ApplyPatchError
Source§fn eq(&self, other: &ApplyPatchError) -> bool
fn eq(&self, other: &ApplyPatchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplyPatchError
Auto Trait Implementations§
impl !RefUnwindSafe for ApplyPatchError
impl !UnwindSafe for ApplyPatchError
impl Freeze for ApplyPatchError
impl Send for ApplyPatchError
impl Sync for ApplyPatchError
impl Unpin for ApplyPatchError
impl UnsafeUnpin for ApplyPatchError
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