Struct bigdecimal::BigDecimal

source ·
pub struct BigDecimal { /* private fields */ }
Expand description

A big decimal type.

Implementations§

source§

impl BigDecimal

source

pub fn new(digits: BigInt, scale: i64) -> BigDecimal

Creates and initializes a BigDecimal.

source

pub fn to_ref(&self) -> BigDecimalRef<'_>

Make a BigDecimalRef of this value

source

pub fn fractional_digit_count(&self) -> i64

Returns the scale of the BigDecimal, the total number of digits to the right of the decimal point (including insignificant leading zeros)

§Examples
use bigdecimal::BigDecimal;
use std::str::FromStr;

let a = BigDecimal::from(12345);  // No fractional part
let b = BigDecimal::from_str("123.45").unwrap();  // Fractional part
let c = BigDecimal::from_str("0.0000012345").unwrap();  // Completely fractional part
let d = BigDecimal::from_str("5e9").unwrap();  // Negative-fractional part

assert_eq!(a.fractional_digit_count(), 0);
assert_eq!(b.fractional_digit_count(), 2);
assert_eq!(c.fractional_digit_count(), 10);
assert_eq!(d.fractional_digit_count(), -9);
source

pub fn parse_bytes(buf: &[u8], radix: u32) -> Option<BigDecimal>

Creates and initializes a BigDecimal.

Decodes using str::from_utf8 and forwards to BigDecimal::from_str_radix. Only base-10 is supported.

§Examples
use bigdecimal::{BigDecimal, Zero};

assert_eq!(BigDecimal::parse_bytes(b"0", 10).unwrap(), BigDecimal::zero());
assert_eq!(BigDecimal::parse_bytes(b"13", 10).unwrap(), BigDecimal::from(13));
source

pub fn with_scale(&self, new_scale: i64) -> BigDecimal

Return a new BigDecimal object equivalent to self, with internal scaling set to the number specified. If the new_scale is lower than the current value (indicating a larger power of 10), digits will be dropped (as precision is lower)

source

pub fn with_scale_round(&self, new_scale: i64, mode: RoundingMode) -> BigDecimal

Return a new BigDecimal after shortening the digits and rounding


let n: BigDecimal = "129.41675".parse().unwrap();

assert_eq!(n.with_scale_round(2, RoundingMode::Up),  "129.42".parse().unwrap());
assert_eq!(n.with_scale_round(-1, RoundingMode::Down),  "120".parse().unwrap());
assert_eq!(n.with_scale_round(4, RoundingMode::HalfEven),  "129.4168".parse().unwrap());
source

pub fn with_prec(&self, prec: u64) -> BigDecimal

Return a new BigDecimal object with precision set to new value


let n: BigDecimal = "129.41675".parse().unwrap();

assert_eq!(n.with_prec(2),  "130".parse().unwrap());

let n_p12 = n.with_prec(12);
let (i, scale) = n_p12.as_bigint_and_exponent();
assert_eq!(n_p12, "129.416750000".parse().unwrap());
assert_eq!(i, 129416750000_u64.into());
assert_eq!(scale, 9);
source

pub fn with_precision_round( &self, prec: NonZeroU64, round: RoundingMode ) -> BigDecimal

Return this BigDecimal with the given precision, rounding if needed

source

pub fn sign(&self) -> Sign

Return the sign of the BigDecimal as num::bigint::Sign.


fn sign_of(src: &str) -> Sign {
   let n: BigDecimal = src.parse().unwrap();
   n.sign()
}

assert_eq!(sign_of("-1"), Sign::Minus);
assert_eq!(sign_of("0"),  Sign::NoSign);
assert_eq!(sign_of("1"),  Sign::Plus);
source

pub fn as_bigint_and_exponent(&self) -> (BigInt, i64)

Return the internal big integer value and an exponent. Note that a positive exponent indicates a negative power of 10.

§Examples
use bigdecimal::{BigDecimal, num_bigint::BigInt};

let n: BigDecimal = "1.23456".parse().unwrap();
let expected = ("123456".parse::<BigInt>().unwrap(), 5);
assert_eq!(n.as_bigint_and_exponent(), expected);
source

pub fn into_bigint_and_exponent(self) -> (BigInt, i64)

Convert into the internal big integer value and an exponent. Note that a positive exponent indicates a negative power of 10.

§Examples
use bigdecimal::{BigDecimal, num_bigint::BigInt};

let n: BigDecimal = "1.23456".parse().unwrap();
let expected = ("123456".parse::<num_bigint::BigInt>().unwrap(), 5);
assert_eq!(n.into_bigint_and_exponent(), expected);
source

pub fn digits(&self) -> u64

Number of digits in the non-scaled integer representation

source

pub fn abs(&self) -> BigDecimal

Compute the absolute value of number

let n: BigDecimal = "123.45".parse().unwrap();
assert_eq!(n.abs(), "123.45".parse().unwrap());

let n: BigDecimal = "-123.45".parse().unwrap();
assert_eq!(n.abs(), "123.45".parse().unwrap());
source

pub fn double(&self) -> BigDecimal

Multiply decimal by 2 (efficiently)

let n: BigDecimal = "123.45".parse().unwrap();
assert_eq!(n.double(), "246.90".parse().unwrap());
source

pub fn half(&self) -> BigDecimal

Divide decimal by 2 (efficiently)

Note: If the last digit in the decimal is odd, the precision will increase by 1

let n: BigDecimal = "123.45".parse().unwrap();
assert_eq!(n.half(), "61.725".parse().unwrap());
source

pub fn square(&self) -> BigDecimal

Square a decimal:

No rounding or truncating of digits; this is the full result of the squaring operation.

Note: doubles the scale of bigdecimal, which might lead to accidental exponential-complexity if used in a loop.

let n: BigDecimal = "1.1156024145937225657484".parse().unwrap();
assert_eq!(n.square(), "1.24456874744734405154288399835406316085210256".parse().unwrap());

let n: BigDecimal = "-9.238597585E+84".parse().unwrap();
assert_eq!(n.square(), "8.5351685337567832225E+169".parse().unwrap());
source

pub fn cube(&self) -> BigDecimal

Cube a decimal:

No rounding or truncating of digits; this is the full result of the cubing operation.

Note: triples the scale of bigdecimal, which might lead to accidental exponential-complexity if used in a loop.

let n: BigDecimal = "1.1156024145937225657484".parse().unwrap();
assert_eq!(n.cube(), "1.388443899780141911774491376394890472130000455312878627147979955904".parse().unwrap());

let n: BigDecimal = "-9.238597585E+84".parse().unwrap();
assert_eq!(n.cube(), "-7.88529874035334084567570176625E+254".parse().unwrap());
source

pub fn sqrt(&self) -> Option<BigDecimal>

Take the square root of the number

Uses default-precision, set from build time environment variable

If the value is < 0, None is returned

let n: BigDecimal = "1.1156024145937225657484".parse().unwrap();
assert_eq!(n.sqrt().unwrap(), "1.056220817156016181190291268045893004363809142172289919023269377496528394924695970851558013658193913".parse().unwrap());

let n: BigDecimal = "-9.238597585E+84".parse().unwrap();
assert_eq!(n.sqrt(), None);
source

pub fn sqrt_with_context(&self, ctx: &Context) -> Option<BigDecimal>

Take the square root of the number, using context for precision and rounding

source

pub fn cbrt(&self) -> BigDecimal

Take the cube root of the number, using default context

source

pub fn cbrt_with_context(&self, ctx: &Context) -> BigDecimal

Take cube root of self, using properties of context

source

pub fn inverse(&self) -> BigDecimal

Compute the reciprical of the number: x-1

source

pub fn inverse_with_context(&self, ctx: &Context) -> BigDecimal

Return inverse of self, rounding with ctx

source

pub fn round(&self, round_digits: i64) -> BigDecimal

Return number rounded to round_digits precision after the decimal point

source

pub fn is_integer(&self) -> bool

Return true if this number has zero fractional part (is equal to an integer)

source

pub fn exp(&self) -> BigDecimal

Evaluate the natural-exponential function ex

source

pub fn normalized(&self) -> BigDecimal

source

pub fn to_scientific_notation(&self) -> String

Create string of this bigdecimal in scientific notation

let n = BigDecimal::from(12345678);
assert_eq!(&n.to_scientific_notation(), "1.2345678e7");
source

pub fn write_scientific_notation<W: Write>(&self, w: &mut W) -> Result

Write bigdecimal in scientific notation to writer w

source

pub fn to_engineering_notation(&self) -> String

Create string of this bigdecimal in engineering notation

Engineering notation is scientific notation with the exponent coerced to a multiple of three

let n = BigDecimal::from(12345678);
assert_eq!(&n.to_engineering_notation(), "12.345678e6");
source

pub fn write_engineering_notation<W: Write>(&self, w: &mut W) -> Result

Write bigdecimal in engineering notation to writer w

Trait Implementations§

source§

impl<'a> Add<&'a BigDecimal> for &BigInt

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl<'a> Add<&'a BigDecimal> for BigInt

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<&u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &BigInt

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for BigDecimalRef<'_>

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for BigInt

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigInt> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigInt) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<BigInt> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigInt) -> BigDecimal

Performs the + operation. Read more
source§

impl<'a, T: Into<BigDecimalRef<'a>>> Add<T> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> BigDecimal

Performs the + operation. Read more
source§

impl<'a, T: Into<BigDecimalRef<'a>>> Add<T> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: T) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u128) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add<u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> BigDecimal

Performs the + operation. Read more
source§

impl Add for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the + operator.
source§

fn add(self, rhs: BigDecimal) -> BigDecimal

Performs the + operation. Read more
source§

impl AddAssign<&i128> for BigDecimal

source§

fn add_assign(&mut self, rhs: &i128)

Performs the += operation. Read more
source§

impl AddAssign<&i16> for BigDecimal

source§

fn add_assign(&mut self, rhs: &i16)

Performs the += operation. Read more
source§

impl AddAssign<&i32> for BigDecimal

source§

fn add_assign(&mut self, rhs: &i32)

Performs the += operation. Read more
source§

impl AddAssign<&i64> for BigDecimal

source§

fn add_assign(&mut self, rhs: &i64)

Performs the += operation. Read more
source§

impl AddAssign<&i8> for BigDecimal

source§

fn add_assign(&mut self, rhs: &i8)

Performs the += operation. Read more
source§

impl AddAssign<&u128> for BigDecimal

source§

fn add_assign(&mut self, rhs: &u128)

Performs the += operation. Read more
source§

impl AddAssign<&u16> for BigDecimal

source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
source§

impl AddAssign<&u32> for BigDecimal

source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
source§

impl AddAssign<&u64> for BigDecimal

source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
source§

impl AddAssign<&u8> for BigDecimal

source§

fn add_assign(&mut self, rhs: &u8)

Performs the += operation. Read more
source§

impl AddAssign<BigInt> for BigDecimal

source§

fn add_assign(&mut self, rhs: BigInt)

Performs the += operation. Read more
source§

impl<'a, N: Into<BigDecimalRef<'a>>> AddAssign<N> for BigDecimal

source§

fn add_assign(&mut self, rhs: N)

Performs the += operation. Read more
source§

impl AddAssign<i128> for BigDecimal

source§

fn add_assign(&mut self, rhs: i128)

Performs the += operation. Read more
source§

impl AddAssign<i16> for BigDecimal

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for BigDecimal

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for BigDecimal

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for BigDecimal

source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
source§

impl AddAssign<u128> for BigDecimal

source§

fn add_assign(&mut self, rhs: u128)

Performs the += operation. Read more
source§

impl AddAssign<u16> for BigDecimal

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for BigDecimal

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for BigDecimal

source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for BigDecimal

source§

fn add_assign(&mut self, rhs: u8)

Performs the += operation. Read more
source§

impl AddAssign for BigDecimal

source§

fn add_assign(&mut self, rhs: BigDecimal)

Performs the += operation. Read more
source§

impl Clone for BigDecimal

source§

fn clone(&self) -> BigDecimal

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BigDecimal

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BigDecimal

source§

fn default() -> BigDecimal

Returns the “default value” for a type. Read more
source§

impl Display for BigDecimal

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, 'b> Div<&'b BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &f32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &f64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl<'a> Div<&'a BigDecimal> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: &'a BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for f32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for f64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&f32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &f32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&f64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &f64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &i128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &i16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &i32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &i64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &i8) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &u128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &u16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &u32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &u64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<&u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: &u8) -> BigDecimal

Performs the / operation. Read more
source§

impl<'a> Div<BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &f32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &f64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for f32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for f64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<f32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: f32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<f32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: f32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<f64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: f64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<f64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: f64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i8) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: i8) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u128) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u16) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u32) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u64) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u8) -> BigDecimal

Performs the / operation. Read more
source§

impl Div<u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, denom: u8) -> BigDecimal

Performs the / operation. Read more
source§

impl Div for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: BigDecimal) -> BigDecimal

Performs the / operation. Read more
source§

impl DivAssign<&f32> for BigDecimal

source§

fn div_assign(&mut self, denom: &f32)

Performs the /= operation. Read more
source§

impl DivAssign<&f64> for BigDecimal

source§

fn div_assign(&mut self, denom: &f64)

Performs the /= operation. Read more
source§

impl DivAssign<&i128> for BigDecimal

source§

fn div_assign(&mut self, denom: &i128)

Performs the /= operation. Read more
source§

impl DivAssign<&i16> for BigDecimal

source§

fn div_assign(&mut self, denom: &i16)

Performs the /= operation. Read more
source§

impl DivAssign<&i32> for BigDecimal

source§

fn div_assign(&mut self, denom: &i32)

Performs the /= operation. Read more
source§

impl DivAssign<&i64> for BigDecimal

source§

fn div_assign(&mut self, denom: &i64)

Performs the /= operation. Read more
source§

impl DivAssign<&i8> for BigDecimal

source§

fn div_assign(&mut self, denom: &i8)

Performs the /= operation. Read more
source§

impl DivAssign<&u128> for BigDecimal

source§

fn div_assign(&mut self, denom: &u128)

Performs the /= operation. Read more
source§

impl DivAssign<&u16> for BigDecimal

source§

fn div_assign(&mut self, denom: &u16)

Performs the /= operation. Read more
source§

impl DivAssign<&u32> for BigDecimal

source§

fn div_assign(&mut self, denom: &u32)

Performs the /= operation. Read more
source§

impl DivAssign<&u64> for BigDecimal

source§

fn div_assign(&mut self, denom: &u64)

Performs the /= operation. Read more
source§

impl DivAssign<&u8> for BigDecimal

source§

fn div_assign(&mut self, denom: &u8)

Performs the /= operation. Read more
source§

impl DivAssign<f32> for BigDecimal

source§

fn div_assign(&mut self, denom: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for BigDecimal

source§

fn div_assign(&mut self, denom: f64)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for BigDecimal

source§

fn div_assign(&mut self, rhs: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for BigDecimal

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for BigDecimal

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for BigDecimal

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for BigDecimal

source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for BigDecimal

source§

fn div_assign(&mut self, rhs: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for BigDecimal

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for BigDecimal

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for BigDecimal

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for BigDecimal

source§

fn div_assign(&mut self, rhs: u8)

Performs the /= operation. Read more
source§

impl<'a> From<&'a BigDecimal> for BigDecimalRef<'a>

source§

fn from(n: &'a BigDecimal) -> Self

Converts to this type from the input type.
source§

impl From<&i128> for BigDecimal

source§

fn from(n: &i128) -> Self

Converts to this type from the input type.
source§

impl From<&i16> for BigDecimal

source§

fn from(n: &i16) -> Self

Converts to this type from the input type.
source§

impl From<&i32> for BigDecimal

source§

fn from(n: &i32) -> Self

Converts to this type from the input type.
source§

impl From<&i64> for BigDecimal

source§

fn from(n: &i64) -> Self

Converts to this type from the input type.
source§

impl From<&i8> for BigDecimal

source§

fn from(n: &i8) -> Self

Converts to this type from the input type.
source§

impl From<&u128> for BigDecimal

source§

fn from(n: &u128) -> Self

Converts to this type from the input type.
source§

impl From<&u16> for BigDecimal

source§

fn from(n: &u16) -> Self

Converts to this type from the input type.
source§

impl From<&u32> for BigDecimal

source§

fn from(n: &u32) -> Self

Converts to this type from the input type.
source§

impl From<&u64> for BigDecimal

source§

fn from(n: &u64) -> Self

Converts to this type from the input type.
source§

impl From<&u8> for BigDecimal

source§

fn from(n: &u8) -> Self

Converts to this type from the input type.
source§

impl<T: Into<BigInt>> From<(T, i64)> for BigDecimal

source§

fn from((int_val, scale): (T, i64)) -> Self

Converts to this type from the input type.
source§

impl From<BigInt> for BigDecimal

source§

fn from(int_val: BigInt) -> Self

Converts to this type from the input type.
source§

impl From<i128> for BigDecimal

source§

fn from(n: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for BigDecimal

source§

fn from(n: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for BigDecimal

source§

fn from(n: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for BigDecimal

source§

fn from(n: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for BigDecimal

source§

fn from(n: i8) -> Self

Converts to this type from the input type.
source§

impl From<u128> for BigDecimal

source§

fn from(n: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for BigDecimal

source§

fn from(n: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for BigDecimal

source§

fn from(n: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for BigDecimal

source§

fn from(n: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for BigDecimal

source§

fn from(n: u8) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for BigDecimal

source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

impl FromStr for BigDecimal

§

type Err = ParseBigDecimalError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<BigDecimal, ParseBigDecimalError>

Parses a string s to return a value of this type. Read more
source§

impl Hash for BigDecimal

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl LowerExp for BigDecimal

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl<'a, 'b> Mul<&'b BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a, 'b> Mul<&'a BigDecimal> for &'b BigInt

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<&'a BigDecimal> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<&'a BigDecimal> for BigInt

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a, 'b> Mul<&'a BigInt> for &'b BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigInt) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<&'a BigInt> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &BigInt) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<&u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u8) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<BigDecimal> for &'a BigInt

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for BigInt

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> Mul<BigInt> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigInt) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<BigInt> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigInt) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u128) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul<u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> BigDecimal

Performs the * operation. Read more
source§

impl Mul for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the * operator.
source§

fn mul(self, rhs: BigDecimal) -> BigDecimal

Performs the * operation. Read more
source§

impl<'a> MulAssign<&'a BigDecimal> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &BigDecimal)

Performs the *= operation. Read more
source§

impl<'a> MulAssign<&'a BigInt> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &BigInt)

Performs the *= operation. Read more
source§

impl MulAssign<&i128> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &i128)

Performs the *= operation. Read more
source§

impl MulAssign<&i16> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &i16)

Performs the *= operation. Read more
source§

impl MulAssign<&i32> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &i32)

Performs the *= operation. Read more
source§

impl MulAssign<&i64> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &i64)

Performs the *= operation. Read more
source§

impl MulAssign<&i8> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &i8)

Performs the *= operation. Read more
source§

impl MulAssign<&u128> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &u128)

Performs the *= operation. Read more
source§

impl MulAssign<&u16> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
source§

impl MulAssign<&u32> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
source§

impl MulAssign<&u64> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
source§

impl MulAssign<&u8> for BigDecimal

source§

fn mul_assign(&mut self, rhs: &u8)

Performs the *= operation. Read more
source§

impl MulAssign<BigInt> for BigDecimal

source§

fn mul_assign(&mut self, rhs: BigInt)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for BigDecimal

source§

fn mul_assign(&mut self, rhs: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for BigDecimal

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for BigDecimal

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for BigDecimal

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for BigDecimal

source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for BigDecimal

source§

fn mul_assign(&mut self, rhs: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for BigDecimal

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for BigDecimal

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for BigDecimal

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for BigDecimal

source§

fn mul_assign(&mut self, rhs: u8)

Performs the *= operation. Read more
source§

impl MulAssign for BigDecimal

source§

fn mul_assign(&mut self, other: BigDecimal)

Performs the *= operation. Read more
source§

impl<'a> Neg for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn neg(self) -> BigDecimal

Performs the unary - operation. Read more
source§

impl Neg for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn neg(self) -> BigDecimal

Performs the unary - operation. Read more
source§

impl Num for BigDecimal

source§

fn from_str_radix( s: &str, radix: u32 ) -> Result<BigDecimal, ParseBigDecimalError>

Creates and initializes a BigDecimal.

§

type FromStrRadixErr = ParseBigDecimalError

source§

impl One for BigDecimal

source§

fn one() -> BigDecimal

Returns the multiplicative identity element of Self, 1. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
source§

impl Ord for BigDecimal

source§

fn cmp(&self, other: &BigDecimal) -> Ordering

Complete ordering implementation for BigDecimal

§Example
use std::str::FromStr;

let a = bigdecimal::BigDecimal::from_str("-1").unwrap();
let b = bigdecimal::BigDecimal::from_str("1").unwrap();
assert!(a < b);
assert!(b > a);
let c = bigdecimal::BigDecimal::from_str("1").unwrap();
assert!(b >= c);
assert!(c >= b);
let d = bigdecimal::BigDecimal::from_str("10.0").unwrap();
assert!(d > c);
let e = bigdecimal::BigDecimal::from_str(".5").unwrap();
assert!(e < c);
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for BigDecimal

source§

fn eq(&self, rhs: &BigDecimal) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for BigDecimal

source§

fn partial_cmp(&self, other: &BigDecimal) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a, 'b> Rem<&'b BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &BigDecimal) -> BigDecimal

Performs the % operation. Read more
source§

impl<'a> Rem<&'a BigDecimal> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &BigDecimal) -> BigDecimal

Performs the % operation. Read more
source§

impl<'a> Rem<BigDecimal> for &'a BigDecimal

§

type Output = BigDecimal

The resulting type after applying the % operator.
source§

fn rem(self, other: BigDecimal) -> BigDecimal

Performs the % operation. Read more
source§

impl Rem for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the % operator.
source§

fn rem(self, other: BigDecimal) -> BigDecimal

Performs the % operation. Read more
source§

impl RemAssign<&BigDecimal> for BigDecimal

source§

fn rem_assign(&mut self, other: &BigDecimal)

Performs the %= operation. Read more
source§

impl Signed for BigDecimal

source§

fn abs(&self) -> BigDecimal

Computes the absolute value. Read more
source§

fn abs_sub(&self, other: &BigDecimal) -> BigDecimal

The positive difference of two numbers. Read more
source§

fn signum(&self) -> BigDecimal

Returns the sign of the number. Read more
source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
source§

impl Sub<&BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<&u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &BigInt

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &i128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &i16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &i32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &i64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &i8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &u128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &u16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &u32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &u64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for &u8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for BigDecimalRef<'_>

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for BigInt

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for i128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for i16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for i32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for i64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for i8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for u128

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for u16

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for u32

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for u64

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigDecimal> for u8

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigInt> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigInt) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<BigInt> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigInt) -> BigDecimal

Performs the - operation. Read more
source§

impl<'a, T: Into<BigDecimalRef<'a>>> Sub<T> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> BigDecimal

Performs the - operation. Read more
source§

impl<'a, T: Into<BigDecimalRef<'a>>> Sub<T> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: T) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<i8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u128> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u128> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u128) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u16> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u16> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u32> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u32> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u64> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u64> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u8> for &BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub<u8> for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> BigDecimal

Performs the - operation. Read more
source§

impl Sub for BigDecimal

§

type Output = BigDecimal

The resulting type after applying the - operator.
source§

fn sub(self, rhs: BigDecimal) -> BigDecimal

Performs the - operation. Read more
source§

impl SubAssign<&i128> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &i128)

Performs the -= operation. Read more
source§

impl SubAssign<&i16> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &i16)

Performs the -= operation. Read more
source§

impl SubAssign<&i32> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &i32)

Performs the -= operation. Read more
source§

impl SubAssign<&i64> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &i64)

Performs the -= operation. Read more
source§

impl SubAssign<&i8> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &i8)

Performs the -= operation. Read more
source§

impl SubAssign<&u128> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &u128)

Performs the -= operation. Read more
source§

impl SubAssign<&u16> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
source§

impl SubAssign<&u32> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
source§

impl SubAssign<&u64> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
source§

impl SubAssign<&u8> for BigDecimal

source§

fn sub_assign(&mut self, rhs: &u8)

Performs the -= operation. Read more
source§

impl SubAssign<BigInt> for BigDecimal

source§

fn sub_assign(&mut self, rhs: BigInt)

Performs the -= operation. Read more
source§

impl<'rhs, T: Into<BigDecimalRef<'rhs>>> SubAssign<T> for BigDecimal

source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for BigDecimal

source§

fn sub_assign(&mut self, rhs: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for BigDecimal

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for BigDecimal

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for BigDecimal

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for BigDecimal

source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
source§

impl SubAssign<u128> for BigDecimal

source§

fn sub_assign(&mut self, rhs: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for BigDecimal

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for BigDecimal

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for BigDecimal

source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for BigDecimal

source§

fn sub_assign(&mut self, rhs: u8)

Performs the -= operation. Read more
source§

impl SubAssign for BigDecimal

source§

fn sub_assign(&mut self, rhs: BigDecimal)

Performs the -= operation. Read more
source§

impl<'a> Sum<&'a BigDecimal> for BigDecimal

source§

fn sum<I: Iterator<Item = &'a BigDecimal>>(iter: I) -> BigDecimal

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Sum for BigDecimal

source§

fn sum<I: Iterator<Item = BigDecimal>>(iter: I) -> BigDecimal

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl ToBigInt for BigDecimal

source§

fn to_bigint(&self) -> Option<BigInt>

Converts the value of self to a BigInt.
source§

impl ToPrimitive for BigDecimal

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

impl TryFrom<f32> for BigDecimal

§

type Error = ParseBigDecimalError

The type returned in the event of a conversion error.
source§

fn try_from(n: f32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f64> for BigDecimal

§

type Error = ParseBigDecimalError

The type returned in the event of a conversion error.
source§

fn try_from(n: f64) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl UpperExp for BigDecimal

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Zero for BigDecimal

source§

fn zero() -> BigDecimal

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Eq for BigDecimal

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,