Enum decimal_rs::DecimalParseError
source · pub enum DecimalParseError {
Empty,
Invalid,
Overflow,
Underflow,
}
Expand description
An error which can be returned when parsing a decimal.
Variants§
Empty
Empty string.
Invalid
Invalid decimal.
Overflow
Decimal is overflowed.
Underflow
Decimal is underflow.
Trait Implementations§
source§impl Clone for DecimalParseError
impl Clone for DecimalParseError
source§fn clone(&self) -> DecimalParseError
fn clone(&self) -> DecimalParseError
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 DecimalParseError
impl Debug for DecimalParseError
source§impl Display for DecimalParseError
impl Display for DecimalParseError
source§impl From<DecimalParseError> for DecimalConvertError
impl From<DecimalParseError> for DecimalConvertError
source§fn from(e: DecimalParseError) -> Self
fn from(e: DecimalParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq<DecimalParseError> for DecimalParseError
impl PartialEq<DecimalParseError> for DecimalParseError
source§fn eq(&self, other: &DecimalParseError) -> bool
fn eq(&self, other: &DecimalParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.