pub enum ScriptError {
BadA(usize),
BadB(usize),
MissingA(usize),
MissingB(usize),
EqualOutOfOrder(usize),
KeyMismatch {
a: usize,
b: usize,
},
}Expand description
Why an edit script is not a valid transformation of a into b.
Variants§
BadA(usize)
An index of a is used more than once or out of range.
BadB(usize)
An index of b is used more than once, out of range, or out of order.
MissingA(usize)
An index of a is not accounted for.
MissingB(usize)
An index of b is not produced.
EqualOutOfOrder(usize)
Equal ops are not in increasing a order.
KeyMismatch
An Equal or Move pairs items whose keys differ.
Trait Implementations§
Source§impl Clone for ScriptError
impl Clone for ScriptError
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
impl Eq for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
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 PartialEq for ScriptError
impl PartialEq for ScriptError
impl StructuralPartialEq for ScriptError
Auto Trait Implementations§
impl Freeze for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
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