pub enum ParseDecError {
Empty,
InvalidDigit,
Overflow,
}Expand description
Why a decimal failed to parse.
Variants§
Empty
No digits in the text.
InvalidDigit
A character that cannot appear in a decimal.
Overflow
The value lies outside the finite range.
Trait Implementations§
Source§impl Clone for ParseDecError
impl Clone for ParseDecError
Source§fn clone(&self) -> ParseDecError
fn clone(&self) -> ParseDecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseDecError
Source§impl Debug for ParseDecError
impl Debug for ParseDecError
Source§impl Display for ParseDecError
impl Display for ParseDecError
impl Eq for ParseDecError
Source§impl Error for ParseDecError
impl Error for ParseDecError
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 ParseDecError
impl PartialEq for ParseDecError
impl StructuralPartialEq for ParseDecError
Auto Trait Implementations§
impl Freeze for ParseDecError
impl RefUnwindSafe for ParseDecError
impl Send for ParseDecError
impl Sync for ParseDecError
impl Unpin for ParseDecError
impl UnsafeUnpin for ParseDecError
impl UnwindSafe for ParseDecError
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