pub enum ParseErrorKind {
MissingPrefix,
MissingDigits,
MissingExponent,
ExponentOverflow,
MissingEnd,
}Expand description
Kind of parsing error.
Used in ParseError
Variants§
MissingPrefix
No prefix was found. Hexadecimal literals must start with a “0x” or “0X” prefix.
Example: 0.F
MissingDigits
No digits were found. Hexadecimals literals must have digits before or after the decimal point.
Example: 0x. 0x.p1
MissingExponent
Hexadecimal literals with a “p” or “P” to indicate an float must have an exponent.
Example: 0xb.0p 0x1p-
ExponentOverflow
The exponent of a hexidecimal literal must fit into a signed 32-bit integer.
Example: 0x1p3000000000
MissingEnd
The end of the literal was expected, but more bytes were found.
Example: 0x1.g
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 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