#[non_exhaustive]pub enum DistanceError {
InvalidRequest,
InvalidHash,
Mismatch,
}Expand description
Why a pair wasn’t compared.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRequest
The line isn’t an object with string fields a and b, an optional id, and no others.
InvalidHash
a or b isn’t a stored form this runner reads.
Mismatch
a and b come from different definitions, or one is a bit hash and the other a
signature.
Implementations§
Trait Implementations§
Source§impl Clone for DistanceError
impl Clone for DistanceError
impl Copy for DistanceError
Source§impl Debug for DistanceError
impl Debug for DistanceError
impl Eq for DistanceError
Source§impl PartialEq for DistanceError
impl PartialEq for DistanceError
Source§impl Serialize for DistanceError
impl Serialize for DistanceError
impl StructuralPartialEq for DistanceError
Auto Trait Implementations§
impl Forget for DistanceError
impl Freeze for DistanceError
impl Move for DistanceError
impl RefUnwindSafe for DistanceError
impl Send for DistanceError
impl Sync for DistanceError
impl Unpin for DistanceError
impl UnsafeUnpin for DistanceError
impl UnwindSafe for DistanceError
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