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