pub enum JsonDiffPatchError {
InternalPatchLogicError(String),
InvalidPatch(String),
InvalidPatchToTarget {
patch: String,
},
IndexOutOfBoundsRemove {
index: usize,
length: usize,
},
IndexOutOfBoundsInsert {
index: usize,
length: usize,
},
IndexOutOfBoundsMove {
from: usize,
to: usize,
length: usize,
},
IndexOutOfBoundsModify {
index: usize,
length: usize,
},
ApplyTextDiffFailed(Error),
}Variants§
InternalPatchLogicError(String)
InvalidPatch(String)
InvalidPatchToTarget
IndexOutOfBoundsRemove
IndexOutOfBoundsInsert
IndexOutOfBoundsMove
IndexOutOfBoundsModify
ApplyTextDiffFailed(Error)
Trait Implementations§
Source§impl Debug for JsonDiffPatchError
impl Debug for JsonDiffPatchError
Source§impl Display for JsonDiffPatchError
impl Display for JsonDiffPatchError
Source§impl Error for JsonDiffPatchError
impl Error for JsonDiffPatchError
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<Error> for JsonDiffPatchError
impl From<Error> for JsonDiffPatchError
Source§fn from(err: DiffMatchPatchError) -> Self
fn from(err: DiffMatchPatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonDiffPatchError
impl RefUnwindSafe for JsonDiffPatchError
impl Send for JsonDiffPatchError
impl Sync for JsonDiffPatchError
impl Unpin for JsonDiffPatchError
impl UnsafeUnpin for JsonDiffPatchError
impl UnwindSafe for JsonDiffPatchError
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