#[non_exhaustive]pub enum ParseErrorKind {
BlockSizeIsEmpty,
BlockSizeStartsWithZero,
BlockSizeIsInvalid,
BlockSizeIsTooLarge,
BlockHashIsTooLong,
UnexpectedCharacter,
UnexpectedEndOfString,
}
Expand description
An enumeration representing a cause of a fuzzy hash parse error.
§Compatibility Note
Since the version 0.3, the representation of this enum is no longer specified as specific representation of this enum is not important.
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.
BlockSizeIsEmpty
Block size: is empty.
BlockSizeStartsWithZero
Block size: starts with the digit zero ('0'
).
BlockSizeIsInvalid
Block size: is not valid.
BlockSizeIsTooLarge
Block size: is too large to parse.
BlockHashIsTooLong
Block hash (either 1 or 2): block hash is too long.
UnexpectedCharacter
Any: an unexpected character is encountered.
UnexpectedEndOfString
Any: an unexpected end-of-string is encountered.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl Copy for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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