pub enum NumberFmtError {
Show 15 variants
Fmt,
FmtLenInt,
FmtLenExp,
FmtNoSign,
FmtNoExpSign,
Parse,
ParseInvalidDecimalSep,
ParseInvalidSign,
ParseInvalidExp,
ParseInvalidExpSign,
ParseUnescaped,
ParseInvalidDigit,
ParseInvalidGroupingSep,
ParseInvalidCurrency,
ParseInvalidSeparator,
}
Expand description
Errors
Variants§
Fmt
General formatting error. Mostly from write!()
FmtLenInt
Integer len of the source is too long.
FmtLenExp
Exponent len of the source is too long.
FmtNoSign
Number is negative, but there is no place to show.
FmtNoExpSign
Exponent is negative, but there is no place to show.
Parse
General parse error. Mostly from FromStr::parse()
ParseInvalidDecimalSep
Misplaced decimal separator in the pattern. Invalid decimal separator when parsing.
ParseInvalidSign
Invalid sign in the pattern. Invalid sign when parsing.
ParseInvalidExp
Invalid exponent in the pattern. Invalid exponent when parsing.
ParseInvalidExpSign
Invalid exp sign in the pattern. Invalid exp sign when parsing.
ParseUnescaped
Unescaped char in the pattern.
ParseInvalidDigit
Invalid digit when parsing.
ParseInvalidGroupingSep
Invalid grp sep when parsing.
ParseInvalidCurrency
Invalid currency symbol when parsing.
ParseInvalidSeparator
Invalid separator when parsing.
Trait Implementations§
Source§impl Clone for NumberFmtError
impl Clone for NumberFmtError
Source§fn clone(&self) -> NumberFmtError
fn clone(&self) -> NumberFmtError
Returns a copy 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 NumberFmtError
impl Debug for NumberFmtError
Source§impl Display for NumberFmtError
impl Display for NumberFmtError
Source§impl Error for NumberFmtError
impl Error for NumberFmtError
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 NumberFmtError
impl From<Error> for NumberFmtError
Source§impl PartialEq for NumberFmtError
impl PartialEq for NumberFmtError
impl Copy for NumberFmtError
impl Eq for NumberFmtError
impl StructuralPartialEq for NumberFmtError
Auto Trait Implementations§
impl Freeze for NumberFmtError
impl RefUnwindSafe for NumberFmtError
impl Send for NumberFmtError
impl Sync for NumberFmtError
impl Unpin for NumberFmtError
impl UnwindSafe for NumberFmtError
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