pub enum NumberFormatError {
Empty,
NoDigits,
MarkAfterPoint,
TwoPoints,
GroupIsNotThree(usize),
DigitsAfterSymbol,
TooManyPictures,
NegativeIsNotBracketed,
}Expand description
What is wrong with a picture, in the words the refusal uses.
Variants§
Empty
A picture saying nothing at all.
NoDigits
A picture with no digit place in it.
MarkAfterPoint
A thousands mark after the decimal point.
TwoPoints
More than one decimal point.
GroupIsNotThree(usize)
A thousands mark with something other than three digit places after it.
DigitsAfterSymbol
A digit place after the symbol that closes the value.
TooManyPictures
More than two pictures separated by semicolons.
NegativeIsNotBracketed
A second picture that is not the first one in brackets.
Trait Implementations§
Source§impl Clone for NumberFormatError
impl Clone for NumberFormatError
Source§impl Debug for NumberFormatError
impl Debug for NumberFormatError
Source§impl Display for NumberFormatError
impl Display for NumberFormatError
impl Eq for NumberFormatError
Source§impl Error for NumberFormatError
impl Error for NumberFormatError
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 NumberFormatError
impl PartialEq for NumberFormatError
impl StructuralPartialEq for NumberFormatError
Auto Trait Implementations§
impl Freeze for NumberFormatError
impl RefUnwindSafe for NumberFormatError
impl Send for NumberFormatError
impl Sync for NumberFormatError
impl Unpin for NumberFormatError
impl UnsafeUnpin for NumberFormatError
impl UnwindSafe for NumberFormatError
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