pub struct PatchFailedException { /* private fields */ }Expand description
Error type thrown whenever a delta or patch cannot be applied to a given sequence.
Implementations§
Source§impl PatchFailedException
impl PatchFailedException
Sourcepub fn with_message(msg: impl Into<String>) -> Self
pub fn with_message(msg: impl Into<String>) -> Self
Creates a new PatchFailedException with a descriptive message.
Trait Implementations§
Source§impl Clone for PatchFailedException
impl Clone for PatchFailedException
Source§fn clone(&self) -> PatchFailedException
fn clone(&self) -> PatchFailedException
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchFailedException
impl Debug for PatchFailedException
Source§impl Default for PatchFailedException
impl Default for PatchFailedException
Source§impl Display for PatchFailedException
impl Display for PatchFailedException
impl Eq for PatchFailedException
Source§impl Error for PatchFailedException
impl Error for PatchFailedException
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 From<&str> for PatchFailedException
impl From<&str> for PatchFailedException
Source§impl From<DiffError> for PatchFailedException
impl From<DiffError> for PatchFailedException
Source§impl From<PatchFailedException> for DiffError
impl From<PatchFailedException> for DiffError
Source§fn from(err: PatchFailedException) -> Self
fn from(err: PatchFailedException) -> Self
Converts to this type from the input type.
Source§impl From<String> for PatchFailedException
impl From<String> for PatchFailedException
Source§impl PartialEq for PatchFailedException
impl PartialEq for PatchFailedException
impl StructuralPartialEq for PatchFailedException
Auto Trait Implementations§
impl Freeze for PatchFailedException
impl RefUnwindSafe for PatchFailedException
impl Send for PatchFailedException
impl Sync for PatchFailedException
impl Unpin for PatchFailedException
impl UnsafeUnpin for PatchFailedException
impl UnwindSafe for PatchFailedException
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