fn try_from(value: Decimal) -> Result<Self, Self::Error> {
        // The Coefficient type cannot be converted to a BigInt if it is a negative zero.
        let coefficient_big_int: BigInt = value.coefficient.try_into()?;
        Ok(BigDecimal::new(coefficient_big_int, -value.exponent))
    }
/// Attempts to create a BigDecimal from a Decimal. Returns an Error if the Decimal being
/// converted is a negative zero, which BigDecimal cannot represent. Returns Ok otherwise.
Attempts to create a BigDecimal from a Decimal. Returns an Error if the Decimal being
converted is a negative zero, which BigDecimal cannot represent. Returns Ok otherwise.
Attempts to create a BigDecimal from a Decimal . Returns an Error if the Decimal being converted is a negative zero which BigDecimal cannot represent . Returns Ok otherwise .
fn try_from(value: Decimal) -> Result<Self, Self::Error> {
        // The Coefficient type cannot be converted to a BigInt if it is a negative zero.
        let coefficient_big_int: BigInt = value.coefficient.try_into()?;
        Ok(BigDecimal::new(coefficient_big_int, -value.exponent))
    }
fn try_from ( value : Decimal ) -> Result < Self , Self :: Error > { // The Coefficient type cannot be converted to a BigInt if it is a negative zero. let coefficient_big_int : BigInt = value . coefficient . try_into ( ) ? ; Ok ( BigDecimal :: new ( coefficient_big_int , - value . exponent ) ) }
Attempts to create a BigDecimal from a Decimal.
Attempts to create a BigDecimal from a Decimal .
value
Decimal
value
Decimal