Struct BigDecimal
pub struct BigDecimal {
    pub(crate) int_val: BigInt,
    pub(crate) scale: i64,
}Expand description
A big decimal type.
Fields§
§int_val: BigInt§scale: i64Implementations§
§impl BigDecimal
 
impl BigDecimal
pub fn new(digits: BigInt, scale: i64) -> BigDecimal
pub fn new(digits: BigInt, scale: i64) -> BigDecimal
Creates and initializes a BigDecimal.
The more explicit method from_bigint should be preferred, as new
may change in the future.
pub fn from_bigint(digits: BigInt, scale: i64) -> BigDecimal
pub fn from_bigint(digits: BigInt, scale: i64) -> BigDecimal
Construct BigDecimal from BigInt and a scale
pub fn from_biguint(digits: BigUint, scale: i64) -> BigDecimal
pub fn from_biguint(digits: BigUint, scale: i64) -> BigDecimal
Construct positive BigDecimal from BigUint and a scale
pub fn to_ref(&self) -> BigDecimalRef<'_>
pub fn to_ref(&self) -> BigDecimalRef<'_>
Make a BigDecimalRef of this value
pub fn fractional_digit_count(&self) -> i64
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);pub fn parse_bytes(buf: &[u8], radix: u32) -> Option<BigDecimal>
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));pub fn with_scale(&self, new_scale: i64) -> BigDecimal
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)
pub fn with_scale_round(&self, new_scale: i64, mode: RoundingMode) -> BigDecimal
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());pub fn with_prec(&self, prec: u64) -> BigDecimal
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);pub fn with_precision_round(
    &self,
    prec: NonZero<u64>,
    round: RoundingMode,
) -> BigDecimal
pub fn with_precision_round( &self, prec: NonZero<u64>, round: RoundingMode, ) -> BigDecimal
Return this BigDecimal with the given precision, rounding if needed
pub fn sign(&self) -> Sign
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);pub fn as_bigint_and_exponent(&self) -> (BigInt, i64)
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);pub fn into_bigint_and_scale(self) -> (BigInt, i64)
pub fn into_bigint_and_scale(self) -> (BigInt, i64)
Take BigDecimal and split into num::BigInt of digits, and the scale
Scale is number of digits after the decimal point, can be negative.
pub fn as_bigint_and_scale(&self) -> (Cow<'_, BigInt>, i64)
pub fn as_bigint_and_scale(&self) -> (Cow<'_, BigInt>, i64)
Return digits as borrowed Cow of integer digits, and its scale
Scale is number of digits after the decimal point, can be negative.
pub fn into_bigint_and_exponent(self) -> (BigInt, i64)
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);pub fn abs(&self) -> BigDecimal
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());pub fn double(&self) -> BigDecimal
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());pub fn half(&self) -> BigDecimal
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());pub fn square(&self) -> BigDecimal
pub fn square(&self) -> BigDecimal
Square a decimal: x²
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());pub fn cube(&self) -> BigDecimal
pub fn cube(&self) -> BigDecimal
Cube a decimal: x³
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());pub fn sqrt(&self) -> Option<BigDecimal>
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);pub fn sqrt_with_context(&self, ctx: &Context) -> Option<BigDecimal>
pub fn sqrt_with_context(&self, ctx: &Context) -> Option<BigDecimal>
Take the square root of the number, using context for precision and rounding
pub fn cbrt(&self) -> BigDecimal
pub fn cbrt(&self) -> BigDecimal
Take the cube root of the number, using default context
pub fn cbrt_with_context(&self, ctx: &Context) -> BigDecimal
pub fn cbrt_with_context(&self, ctx: &Context) -> BigDecimal
Take cube root of self, using properties of context
pub fn inverse(&self) -> BigDecimal
pub fn inverse(&self) -> BigDecimal
Compute the reciprical of the number: x-1
pub fn inverse_with_context(&self, ctx: &Context) -> BigDecimal
pub fn inverse_with_context(&self, ctx: &Context) -> BigDecimal
Return inverse of self, rounding with ctx
pub fn round(&self, round_digits: i64) -> BigDecimal
pub fn round(&self, round_digits: i64) -> BigDecimal
Return given number rounded to ‘round_digits’ precision after the decimal point, using default rounding mode
Default rounding mode is HalfEven, but can be configured at compile-time
by the environment variable: RUST_BIGDECIMAL_DEFAULT_ROUNDING_MODE
(or by patching build.rs )
pub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Return true if this number has zero fractional part (is equal to an integer)
pub fn exp(&self) -> BigDecimal
pub fn exp(&self) -> BigDecimal
Evaluate the natural-exponential function ex
pub fn normalized(&self) -> BigDecimal
pub fn to_plain_string(&self) -> String
pub fn to_plain_string(&self) -> String
Create string of decimal in standard decimal notation.
Unlike standard formatter, this never prints the number in scientific notation.
§Panics
If the magnitude of the exponent is very large, this may cause out-of-memory errors, or overflowing panics.
§Examples
let n: BigDecimal = "123.45678".parse().unwrap();
assert_eq!(&n.to_plain_string(), "123.45678");
let n: BigDecimal = "1e-10".parse().unwrap();
assert_eq!(&n.to_plain_string(), "0.0000000001");pub fn write_plain_string<W>(&self, wtr: &mut W) -> Result<(), Error>where
    W: Write,
pub fn write_plain_string<W>(&self, wtr: &mut W) -> Result<(), Error>where
    W: Write,
Write decimal value in decimal notation to the writer object.
§Panics
If the exponent is very large or very small, the number of this will print that many trailing or leading zeros. If exabytes, this will likely panic.
pub fn to_scientific_notation(&self) -> String
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");pub fn write_scientific_notation<W>(&self, w: &mut W) -> Result<(), Error>where
    W: Write,
pub fn write_scientific_notation<W>(&self, w: &mut W) -> Result<(), Error>where
    W: Write,
Write bigdecimal in scientific notation to writer w
pub fn to_engineering_notation(&self) -> String
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");Trait Implementations§
§impl Add<&i128> for &BigDecimal
 
impl Add<&i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i128) -> BigDecimal
 
fn add(self, rhs: &i128) -> BigDecimal
+ operation. Read more§impl Add<&i128> for BigDecimal
 
impl Add<&i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i128) -> BigDecimal
 
fn add(self, rhs: &i128) -> BigDecimal
+ operation. Read more§impl Add<&i16> for &BigDecimal
 
impl Add<&i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i16) -> BigDecimal
 
fn add(self, rhs: &i16) -> BigDecimal
+ operation. Read more§impl Add<&i16> for BigDecimal
 
impl Add<&i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i16) -> BigDecimal
 
fn add(self, rhs: &i16) -> BigDecimal
+ operation. Read more§impl Add<&i32> for &BigDecimal
 
impl Add<&i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i32) -> BigDecimal
 
fn add(self, rhs: &i32) -> BigDecimal
+ operation. Read more§impl Add<&i32> for BigDecimal
 
impl Add<&i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i32) -> BigDecimal
 
fn add(self, rhs: &i32) -> BigDecimal
+ operation. Read more§impl Add<&i64> for &BigDecimal
 
impl Add<&i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i64) -> BigDecimal
 
fn add(self, rhs: &i64) -> BigDecimal
+ operation. Read more§impl Add<&i64> for BigDecimal
 
impl Add<&i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i64) -> BigDecimal
 
fn add(self, rhs: &i64) -> BigDecimal
+ operation. Read more§impl Add<&i8> for &BigDecimal
 
impl Add<&i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i8) -> BigDecimal
 
fn add(self, rhs: &i8) -> BigDecimal
+ operation. Read more§impl Add<&i8> for BigDecimal
 
impl Add<&i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &i8) -> BigDecimal
 
fn add(self, rhs: &i8) -> BigDecimal
+ operation. Read more§impl Add<&u128> for &BigDecimal
 
impl Add<&u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u128) -> BigDecimal
 
fn add(self, rhs: &u128) -> BigDecimal
+ operation. Read more§impl Add<&u128> for BigDecimal
 
impl Add<&u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u128) -> BigDecimal
 
fn add(self, rhs: &u128) -> BigDecimal
+ operation. Read more§impl Add<&u16> for &BigDecimal
 
impl Add<&u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u16) -> BigDecimal
 
fn add(self, rhs: &u16) -> BigDecimal
+ operation. Read more§impl Add<&u16> for BigDecimal
 
impl Add<&u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u16) -> BigDecimal
 
fn add(self, rhs: &u16) -> BigDecimal
+ operation. Read more§impl Add<&u32> for &BigDecimal
 
impl Add<&u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u32) -> BigDecimal
 
fn add(self, rhs: &u32) -> BigDecimal
+ operation. Read more§impl Add<&u32> for BigDecimal
 
impl Add<&u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u32) -> BigDecimal
 
fn add(self, rhs: &u32) -> BigDecimal
+ operation. Read more§impl Add<&u64> for &BigDecimal
 
impl Add<&u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u64) -> BigDecimal
 
fn add(self, rhs: &u64) -> BigDecimal
+ operation. Read more§impl Add<&u64> for BigDecimal
 
impl Add<&u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u64) -> BigDecimal
 
fn add(self, rhs: &u64) -> BigDecimal
+ operation. Read more§impl Add<&u8> for &BigDecimal
 
impl Add<&u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u8) -> BigDecimal
 
fn add(self, rhs: &u8) -> BigDecimal
+ operation. Read more§impl Add<&u8> for BigDecimal
 
impl Add<&u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: &u8) -> BigDecimal
 
fn add(self, rhs: &u8) -> BigDecimal
+ operation. Read more§impl Add<BigDecimal> for &BigDecimal
 
impl Add<BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: BigDecimal) -> BigDecimal
 
fn add(self, rhs: BigDecimal) -> BigDecimal
+ operation. Read more§impl Add<BigInt> for &BigDecimal
 
impl Add<BigInt> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: BigInt) -> BigDecimal
 
fn add(self, rhs: BigInt) -> BigDecimal
+ operation. Read more§impl Add<BigInt> for BigDecimal
 
impl Add<BigInt> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: BigInt) -> BigDecimal
 
fn add(self, rhs: BigInt) -> BigDecimal
+ operation. Read more§impl<'a, T> Add<T> for &BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
 
impl<'a, T> Add<T> for &BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: T) -> BigDecimal
 
fn add(self, rhs: T) -> BigDecimal
+ operation. Read more§impl<'a, T> Add<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
 
impl<'a, T> Add<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: T) -> BigDecimal
 
fn add(self, rhs: T) -> BigDecimal
+ operation. Read more§impl Add<i128> for &BigDecimal
 
impl Add<i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i128) -> BigDecimal
 
fn add(self, rhs: i128) -> BigDecimal
+ operation. Read more§impl Add<i128> for BigDecimal
 
impl Add<i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i128) -> BigDecimal
 
fn add(self, rhs: i128) -> BigDecimal
+ operation. Read more§impl Add<i16> for &BigDecimal
 
impl Add<i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i16) -> BigDecimal
 
fn add(self, rhs: i16) -> BigDecimal
+ operation. Read more§impl Add<i16> for BigDecimal
 
impl Add<i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i16) -> BigDecimal
 
fn add(self, rhs: i16) -> BigDecimal
+ operation. Read more§impl Add<i32> for &BigDecimal
 
impl Add<i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i32) -> BigDecimal
 
fn add(self, rhs: i32) -> BigDecimal
+ operation. Read more§impl Add<i32> for BigDecimal
 
impl Add<i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i32) -> BigDecimal
 
fn add(self, rhs: i32) -> BigDecimal
+ operation. Read more§impl Add<i64> for &BigDecimal
 
impl Add<i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i64) -> BigDecimal
 
fn add(self, rhs: i64) -> BigDecimal
+ operation. Read more§impl Add<i64> for BigDecimal
 
impl Add<i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i64) -> BigDecimal
 
fn add(self, rhs: i64) -> BigDecimal
+ operation. Read more§impl Add<i8> for &BigDecimal
 
impl Add<i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i8) -> BigDecimal
 
fn add(self, rhs: i8) -> BigDecimal
+ operation. Read more§impl Add<i8> for BigDecimal
 
impl Add<i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: i8) -> BigDecimal
 
fn add(self, rhs: i8) -> BigDecimal
+ operation. Read more§impl Add<u128> for &BigDecimal
 
impl Add<u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u128) -> BigDecimal
 
fn add(self, rhs: u128) -> BigDecimal
+ operation. Read more§impl Add<u128> for BigDecimal
 
impl Add<u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u128) -> BigDecimal
 
fn add(self, rhs: u128) -> BigDecimal
+ operation. Read more§impl Add<u16> for &BigDecimal
 
impl Add<u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u16) -> BigDecimal
 
fn add(self, rhs: u16) -> BigDecimal
+ operation. Read more§impl Add<u16> for BigDecimal
 
impl Add<u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u16) -> BigDecimal
 
fn add(self, rhs: u16) -> BigDecimal
+ operation. Read more§impl Add<u32> for &BigDecimal
 
impl Add<u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u32) -> BigDecimal
 
fn add(self, rhs: u32) -> BigDecimal
+ operation. Read more§impl Add<u32> for BigDecimal
 
impl Add<u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u32) -> BigDecimal
 
fn add(self, rhs: u32) -> BigDecimal
+ operation. Read more§impl Add<u64> for &BigDecimal
 
impl Add<u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u64) -> BigDecimal
 
fn add(self, rhs: u64) -> BigDecimal
+ operation. Read more§impl Add<u64> for BigDecimal
 
impl Add<u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u64) -> BigDecimal
 
fn add(self, rhs: u64) -> BigDecimal
+ operation. Read more§impl Add<u8> for &BigDecimal
 
impl Add<u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u8) -> BigDecimal
 
fn add(self, rhs: u8) -> BigDecimal
+ operation. Read more§impl Add<u8> for BigDecimal
 
impl Add<u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: u8) -> BigDecimal
 
fn add(self, rhs: u8) -> BigDecimal
+ operation. Read more§impl Add for BigDecimal
 
impl Add for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
+ operator.§fn add(self, rhs: BigDecimal) -> BigDecimal
 
fn add(self, rhs: BigDecimal) -> BigDecimal
+ operation. Read more§impl AddAssign<&i128> for BigDecimal
 
impl AddAssign<&i128> for BigDecimal
§fn add_assign(&mut self, rhs: &i128)
 
fn add_assign(&mut self, rhs: &i128)
+= operation. Read more§impl AddAssign<&i16> for BigDecimal
 
impl AddAssign<&i16> for BigDecimal
§fn add_assign(&mut self, rhs: &i16)
 
fn add_assign(&mut self, rhs: &i16)
+= operation. Read more§impl AddAssign<&i32> for BigDecimal
 
impl AddAssign<&i32> for BigDecimal
§fn add_assign(&mut self, rhs: &i32)
 
fn add_assign(&mut self, rhs: &i32)
+= operation. Read more§impl AddAssign<&i64> for BigDecimal
 
impl AddAssign<&i64> for BigDecimal
§fn add_assign(&mut self, rhs: &i64)
 
fn add_assign(&mut self, rhs: &i64)
+= operation. Read more§impl AddAssign<&i8> for BigDecimal
 
impl AddAssign<&i8> for BigDecimal
§fn add_assign(&mut self, rhs: &i8)
 
fn add_assign(&mut self, rhs: &i8)
+= operation. Read more§impl AddAssign<&u128> for BigDecimal
 
impl AddAssign<&u128> for BigDecimal
§fn add_assign(&mut self, rhs: &u128)
 
fn add_assign(&mut self, rhs: &u128)
+= operation. Read more§impl AddAssign<&u16> for BigDecimal
 
impl AddAssign<&u16> for BigDecimal
§fn add_assign(&mut self, rhs: &u16)
 
fn add_assign(&mut self, rhs: &u16)
+= operation. Read more§impl AddAssign<&u32> for BigDecimal
 
impl AddAssign<&u32> for BigDecimal
§fn add_assign(&mut self, rhs: &u32)
 
fn add_assign(&mut self, rhs: &u32)
+= operation. Read more§impl AddAssign<&u64> for BigDecimal
 
impl AddAssign<&u64> for BigDecimal
§fn add_assign(&mut self, rhs: &u64)
 
fn add_assign(&mut self, rhs: &u64)
+= operation. Read more§impl AddAssign<&u8> for BigDecimal
 
impl AddAssign<&u8> for BigDecimal
§fn add_assign(&mut self, rhs: &u8)
 
fn add_assign(&mut self, rhs: &u8)
+= operation. Read more§impl AddAssign<BigInt> for BigDecimal
 
impl AddAssign<BigInt> for BigDecimal
§fn add_assign(&mut self, rhs: BigInt)
 
fn add_assign(&mut self, rhs: BigInt)
+= operation. Read more§impl<'a, N> AddAssign<N> for BigDecimalwhere
    N: Into<BigDecimalRef<'a>>,
 
impl<'a, N> AddAssign<N> for BigDecimalwhere
    N: Into<BigDecimalRef<'a>>,
§fn add_assign(&mut self, rhs: N)
 
fn add_assign(&mut self, rhs: N)
+= operation. Read more§impl AddAssign<i128> for BigDecimal
 
impl AddAssign<i128> for BigDecimal
§fn add_assign(&mut self, rhs: i128)
 
fn add_assign(&mut self, rhs: i128)
+= operation. Read more§impl AddAssign<i16> for BigDecimal
 
impl AddAssign<i16> for BigDecimal
§fn add_assign(&mut self, rhs: i16)
 
fn add_assign(&mut self, rhs: i16)
+= operation. Read more§impl AddAssign<i32> for BigDecimal
 
impl AddAssign<i32> for BigDecimal
§fn add_assign(&mut self, rhs: i32)
 
fn add_assign(&mut self, rhs: i32)
+= operation. Read more§impl AddAssign<i64> for BigDecimal
 
impl AddAssign<i64> for BigDecimal
§fn add_assign(&mut self, rhs: i64)
 
fn add_assign(&mut self, rhs: i64)
+= operation. Read more§impl AddAssign<i8> for BigDecimal
 
impl AddAssign<i8> for BigDecimal
§fn add_assign(&mut self, rhs: i8)
 
fn add_assign(&mut self, rhs: i8)
+= operation. Read more§impl AddAssign<u128> for BigDecimal
 
impl AddAssign<u128> for BigDecimal
§fn add_assign(&mut self, rhs: u128)
 
fn add_assign(&mut self, rhs: u128)
+= operation. Read more§impl AddAssign<u16> for BigDecimal
 
impl AddAssign<u16> for BigDecimal
§fn add_assign(&mut self, rhs: u16)
 
fn add_assign(&mut self, rhs: u16)
+= operation. Read more§impl AddAssign<u32> for BigDecimal
 
impl AddAssign<u32> for BigDecimal
§fn add_assign(&mut self, rhs: u32)
 
fn add_assign(&mut self, rhs: u32)
+= operation. Read more§impl AddAssign<u64> for BigDecimal
 
impl AddAssign<u64> for BigDecimal
§fn add_assign(&mut self, rhs: u64)
 
fn add_assign(&mut self, rhs: u64)
+= operation. Read more§impl AddAssign<u8> for BigDecimal
 
impl AddAssign<u8> for BigDecimal
§fn add_assign(&mut self, rhs: u8)
 
fn add_assign(&mut self, rhs: u8)
+= operation. Read more§impl AddAssign for BigDecimal
 
impl AddAssign for BigDecimal
§fn add_assign(&mut self, rhs: BigDecimal)
 
fn add_assign(&mut self, rhs: BigDecimal)
+= operation. Read more§impl Clone for BigDecimal
 
impl Clone for BigDecimal
§fn clone(&self) -> BigDecimal
 
fn clone(&self) -> BigDecimal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for BigDecimal
 
impl Debug for BigDecimal
§impl Decode<'_, MySql> for BigDecimal
 
impl Decode<'_, MySql> for BigDecimal
§fn decode(
    value: MySqlValueRef<'_>,
) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'_>, ) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
§impl Decode<'_, Postgres> for BigDecimal
§Note: NaN
BigDecimal has a greater range than NUMERIC (see the corresponding Encode impl for details)
but cannot represent NaN, so decoding may return an error.
 
impl Decode<'_, Postgres> for BigDecimal
§Note: NaN
BigDecimal has a greater range than NUMERIC (see the corresponding Encode impl for details)
but cannot represent NaN, so decoding may return an error.
§fn decode(
    value: PgValueRef<'_>,
) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
 
fn decode( value: PgValueRef<'_>, ) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
§impl Default for BigDecimal
 
impl Default for BigDecimal
§fn default() -> BigDecimal
 
fn default() -> BigDecimal
§impl<'de> Deserialize<'de> for BigDecimal
 
impl<'de> Deserialize<'de> for BigDecimal
§fn deserialize<D>(d: D) -> Result<BigDecimal, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(d: D) -> Result<BigDecimal, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
§impl Display for BigDecimal
 
impl Display for BigDecimal
§impl Div<&BigDecimal> for &BigDecimal
 
impl Div<&BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, other: &BigDecimal) -> BigDecimal
 
fn div(self, other: &BigDecimal) -> BigDecimal
/ operation. Read more§impl<'a> Div<&'a BigDecimal> for BigDecimal
 
impl<'a> Div<&'a BigDecimal> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, other: &'a BigDecimal) -> BigDecimal
 
fn div(self, other: &'a BigDecimal) -> BigDecimal
/ operation. Read more§impl Div<&f32> for BigDecimal
 
impl Div<&f32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &f32) -> BigDecimal
 
fn div(self, denom: &f32) -> BigDecimal
/ operation. Read more§impl Div<&f64> for BigDecimal
 
impl Div<&f64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &f64) -> BigDecimal
 
fn div(self, denom: &f64) -> BigDecimal
/ operation. Read more§impl Div<&i128> for BigDecimal
 
impl Div<&i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &i128) -> BigDecimal
 
fn div(self, denom: &i128) -> BigDecimal
/ operation. Read more§impl Div<&i16> for BigDecimal
 
impl Div<&i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &i16) -> BigDecimal
 
fn div(self, denom: &i16) -> BigDecimal
/ operation. Read more§impl Div<&i32> for BigDecimal
 
impl Div<&i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &i32) -> BigDecimal
 
fn div(self, denom: &i32) -> BigDecimal
/ operation. Read more§impl Div<&i64> for BigDecimal
 
impl Div<&i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &i64) -> BigDecimal
 
fn div(self, denom: &i64) -> BigDecimal
/ operation. Read more§impl Div<&i8> for BigDecimal
 
impl Div<&i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &i8) -> BigDecimal
 
fn div(self, denom: &i8) -> BigDecimal
/ operation. Read more§impl Div<&u128> for BigDecimal
 
impl Div<&u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &u128) -> BigDecimal
 
fn div(self, denom: &u128) -> BigDecimal
/ operation. Read more§impl Div<&u16> for BigDecimal
 
impl Div<&u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &u16) -> BigDecimal
 
fn div(self, denom: &u16) -> BigDecimal
/ operation. Read more§impl Div<&u32> for BigDecimal
 
impl Div<&u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &u32) -> BigDecimal
 
fn div(self, denom: &u32) -> BigDecimal
/ operation. Read more§impl Div<&u64> for BigDecimal
 
impl Div<&u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &u64) -> BigDecimal
 
fn div(self, denom: &u64) -> BigDecimal
/ operation. Read more§impl Div<&u8> for BigDecimal
 
impl Div<&u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: &u8) -> BigDecimal
 
fn div(self, denom: &u8) -> BigDecimal
/ operation. Read more§impl<'a> Div<BigDecimal> for &'a BigDecimal
 
impl<'a> Div<BigDecimal> for &'a BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, other: BigDecimal) -> BigDecimal
 
fn div(self, other: BigDecimal) -> BigDecimal
/ operation. Read more§impl Div<f32> for &BigDecimal
 
impl Div<f32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: f32) -> BigDecimal
 
fn div(self, denom: f32) -> BigDecimal
/ operation. Read more§impl Div<f32> for BigDecimal
 
impl Div<f32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: f32) -> BigDecimal
 
fn div(self, denom: f32) -> BigDecimal
/ operation. Read more§impl Div<f64> for &BigDecimal
 
impl Div<f64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: f64) -> BigDecimal
 
fn div(self, denom: f64) -> BigDecimal
/ operation. Read more§impl Div<f64> for BigDecimal
 
impl Div<f64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: f64) -> BigDecimal
 
fn div(self, denom: f64) -> BigDecimal
/ operation. Read more§impl Div<i128> for &BigDecimal
 
impl Div<i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i128) -> BigDecimal
 
fn div(self, denom: i128) -> BigDecimal
/ operation. Read more§impl Div<i128> for BigDecimal
 
impl Div<i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i128) -> BigDecimal
 
fn div(self, denom: i128) -> BigDecimal
/ operation. Read more§impl Div<i16> for &BigDecimal
 
impl Div<i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i16) -> BigDecimal
 
fn div(self, denom: i16) -> BigDecimal
/ operation. Read more§impl Div<i16> for BigDecimal
 
impl Div<i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i16) -> BigDecimal
 
fn div(self, denom: i16) -> BigDecimal
/ operation. Read more§impl Div<i32> for &BigDecimal
 
impl Div<i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i32) -> BigDecimal
 
fn div(self, denom: i32) -> BigDecimal
/ operation. Read more§impl Div<i32> for BigDecimal
 
impl Div<i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i32) -> BigDecimal
 
fn div(self, denom: i32) -> BigDecimal
/ operation. Read more§impl Div<i64> for &BigDecimal
 
impl Div<i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i64) -> BigDecimal
 
fn div(self, denom: i64) -> BigDecimal
/ operation. Read more§impl Div<i64> for BigDecimal
 
impl Div<i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i64) -> BigDecimal
 
fn div(self, denom: i64) -> BigDecimal
/ operation. Read more§impl Div<i8> for &BigDecimal
 
impl Div<i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i8) -> BigDecimal
 
fn div(self, denom: i8) -> BigDecimal
/ operation. Read more§impl Div<i8> for BigDecimal
 
impl Div<i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: i8) -> BigDecimal
 
fn div(self, denom: i8) -> BigDecimal
/ operation. Read more§impl Div<u128> for &BigDecimal
 
impl Div<u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u128) -> BigDecimal
 
fn div(self, denom: u128) -> BigDecimal
/ operation. Read more§impl Div<u128> for BigDecimal
 
impl Div<u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u128) -> BigDecimal
 
fn div(self, denom: u128) -> BigDecimal
/ operation. Read more§impl Div<u16> for &BigDecimal
 
impl Div<u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u16) -> BigDecimal
 
fn div(self, denom: u16) -> BigDecimal
/ operation. Read more§impl Div<u16> for BigDecimal
 
impl Div<u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u16) -> BigDecimal
 
fn div(self, denom: u16) -> BigDecimal
/ operation. Read more§impl Div<u32> for &BigDecimal
 
impl Div<u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u32) -> BigDecimal
 
fn div(self, denom: u32) -> BigDecimal
/ operation. Read more§impl Div<u32> for BigDecimal
 
impl Div<u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u32) -> BigDecimal
 
fn div(self, denom: u32) -> BigDecimal
/ operation. Read more§impl Div<u64> for &BigDecimal
 
impl Div<u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u64) -> BigDecimal
 
fn div(self, denom: u64) -> BigDecimal
/ operation. Read more§impl Div<u64> for BigDecimal
 
impl Div<u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u64) -> BigDecimal
 
fn div(self, denom: u64) -> BigDecimal
/ operation. Read more§impl Div<u8> for &BigDecimal
 
impl Div<u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u8) -> BigDecimal
 
fn div(self, denom: u8) -> BigDecimal
/ operation. Read more§impl Div<u8> for BigDecimal
 
impl Div<u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, denom: u8) -> BigDecimal
 
fn div(self, denom: u8) -> BigDecimal
/ operation. Read more§impl Div for BigDecimal
 
impl Div for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
/ operator.§fn div(self, other: BigDecimal) -> BigDecimal
 
fn div(self, other: BigDecimal) -> BigDecimal
/ operation. Read more§impl DivAssign<&f32> for BigDecimal
 
impl DivAssign<&f32> for BigDecimal
§fn div_assign(&mut self, denom: &f32)
 
fn div_assign(&mut self, denom: &f32)
/= operation. Read more§impl DivAssign<&f64> for BigDecimal
 
impl DivAssign<&f64> for BigDecimal
§fn div_assign(&mut self, denom: &f64)
 
fn div_assign(&mut self, denom: &f64)
/= operation. Read more§impl DivAssign<&i128> for BigDecimal
 
impl DivAssign<&i128> for BigDecimal
§fn div_assign(&mut self, denom: &i128)
 
fn div_assign(&mut self, denom: &i128)
/= operation. Read more§impl DivAssign<&i16> for BigDecimal
 
impl DivAssign<&i16> for BigDecimal
§fn div_assign(&mut self, denom: &i16)
 
fn div_assign(&mut self, denom: &i16)
/= operation. Read more§impl DivAssign<&i32> for BigDecimal
 
impl DivAssign<&i32> for BigDecimal
§fn div_assign(&mut self, denom: &i32)
 
fn div_assign(&mut self, denom: &i32)
/= operation. Read more§impl DivAssign<&i64> for BigDecimal
 
impl DivAssign<&i64> for BigDecimal
§fn div_assign(&mut self, denom: &i64)
 
fn div_assign(&mut self, denom: &i64)
/= operation. Read more§impl DivAssign<&i8> for BigDecimal
 
impl DivAssign<&i8> for BigDecimal
§fn div_assign(&mut self, denom: &i8)
 
fn div_assign(&mut self, denom: &i8)
/= operation. Read more§impl DivAssign<&u128> for BigDecimal
 
impl DivAssign<&u128> for BigDecimal
§fn div_assign(&mut self, denom: &u128)
 
fn div_assign(&mut self, denom: &u128)
/= operation. Read more§impl DivAssign<&u16> for BigDecimal
 
impl DivAssign<&u16> for BigDecimal
§fn div_assign(&mut self, denom: &u16)
 
fn div_assign(&mut self, denom: &u16)
/= operation. Read more§impl DivAssign<&u32> for BigDecimal
 
impl DivAssign<&u32> for BigDecimal
§fn div_assign(&mut self, denom: &u32)
 
fn div_assign(&mut self, denom: &u32)
/= operation. Read more§impl DivAssign<&u64> for BigDecimal
 
impl DivAssign<&u64> for BigDecimal
§fn div_assign(&mut self, denom: &u64)
 
fn div_assign(&mut self, denom: &u64)
/= operation. Read more§impl DivAssign<&u8> for BigDecimal
 
impl DivAssign<&u8> for BigDecimal
§fn div_assign(&mut self, denom: &u8)
 
fn div_assign(&mut self, denom: &u8)
/= operation. Read more§impl DivAssign<f32> for BigDecimal
 
impl DivAssign<f32> for BigDecimal
§fn div_assign(&mut self, denom: f32)
 
fn div_assign(&mut self, denom: f32)
/= operation. Read more§impl DivAssign<f64> for BigDecimal
 
impl DivAssign<f64> for BigDecimal
§fn div_assign(&mut self, denom: f64)
 
fn div_assign(&mut self, denom: f64)
/= operation. Read more§impl DivAssign<i128> for BigDecimal
 
impl DivAssign<i128> for BigDecimal
§fn div_assign(&mut self, rhs: i128)
 
fn div_assign(&mut self, rhs: i128)
/= operation. Read more§impl DivAssign<i16> for BigDecimal
 
impl DivAssign<i16> for BigDecimal
§fn div_assign(&mut self, rhs: i16)
 
fn div_assign(&mut self, rhs: i16)
/= operation. Read more§impl DivAssign<i32> for BigDecimal
 
impl DivAssign<i32> for BigDecimal
§fn div_assign(&mut self, rhs: i32)
 
fn div_assign(&mut self, rhs: i32)
/= operation. Read more§impl DivAssign<i64> for BigDecimal
 
impl DivAssign<i64> for BigDecimal
§fn div_assign(&mut self, rhs: i64)
 
fn div_assign(&mut self, rhs: i64)
/= operation. Read more§impl DivAssign<i8> for BigDecimal
 
impl DivAssign<i8> for BigDecimal
§fn div_assign(&mut self, rhs: i8)
 
fn div_assign(&mut self, rhs: i8)
/= operation. Read more§impl DivAssign<u128> for BigDecimal
 
impl DivAssign<u128> for BigDecimal
§fn div_assign(&mut self, rhs: u128)
 
fn div_assign(&mut self, rhs: u128)
/= operation. Read more§impl DivAssign<u16> for BigDecimal
 
impl DivAssign<u16> for BigDecimal
§fn div_assign(&mut self, rhs: u16)
 
fn div_assign(&mut self, rhs: u16)
/= operation. Read more§impl DivAssign<u32> for BigDecimal
 
impl DivAssign<u32> for BigDecimal
§fn div_assign(&mut self, rhs: u32)
 
fn div_assign(&mut self, rhs: u32)
/= operation. Read more§impl DivAssign<u64> for BigDecimal
 
impl DivAssign<u64> for BigDecimal
§fn div_assign(&mut self, rhs: u64)
 
fn div_assign(&mut self, rhs: u64)
/= operation. Read more§impl DivAssign<u8> for BigDecimal
 
impl DivAssign<u8> for BigDecimal
§fn div_assign(&mut self, rhs: u8)
 
fn div_assign(&mut self, rhs: u8)
/= operation. Read more§impl Encode<'_, MySql> for BigDecimal
 
impl Encode<'_, MySql> for BigDecimal
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, Postgres> for BigDecimal
§Note: BigDecimal Has a Larger Range than NUMERIC
BigDecimal can represent values with a far, far greater range than the NUMERIC type in Postgres can.
 
impl Encode<'_, Postgres> for BigDecimal
§Note: BigDecimal Has a Larger Range than NUMERIC
BigDecimal can represent values with a far, far greater range than the NUMERIC type in Postgres can.
NUMERIC is limited to 131,072 digits before the decimal point, and 16,384 digits after it.
See Section 8.1, Numeric Types of the Postgres manual for details.
Meanwhile, BigDecimal can theoretically represent a value with an arbitrary number of decimal digits, albeit
with a maximum of 263 significant figures.
Because encoding in the current API design must be infallible,
when attempting to encode a BigDecimal that cannot fit in the wire representation of NUMERIC,
SQLx may instead encode a sentinel value that falls outside the allowed range but is still representable.
This will cause the query to return a DatabaseError with code 22P03 (invalid_binary_representation)
and the error message invalid scale in external "numeric" value (though this may be subject to change).
However, BigDecimal should be able to decode any NUMERIC value except NaN,
for which it has no representation.
§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl From<&i128> for BigDecimal
 
impl From<&i128> for BigDecimal
§fn from(n: &i128) -> BigDecimal
 
fn from(n: &i128) -> BigDecimal
§impl From<&i16> for BigDecimal
 
impl From<&i16> for BigDecimal
§fn from(n: &i16) -> BigDecimal
 
fn from(n: &i16) -> BigDecimal
§impl From<&i32> for BigDecimal
 
impl From<&i32> for BigDecimal
§fn from(n: &i32) -> BigDecimal
 
fn from(n: &i32) -> BigDecimal
§impl From<&i64> for BigDecimal
 
impl From<&i64> for BigDecimal
§fn from(n: &i64) -> BigDecimal
 
fn from(n: &i64) -> BigDecimal
§impl From<&i8> for BigDecimal
 
impl From<&i8> for BigDecimal
§fn from(n: &i8) -> BigDecimal
 
fn from(n: &i8) -> BigDecimal
§impl From<&u128> for BigDecimal
 
impl From<&u128> for BigDecimal
§fn from(n: &u128) -> BigDecimal
 
fn from(n: &u128) -> BigDecimal
§impl From<&u16> for BigDecimal
 
impl From<&u16> for BigDecimal
§fn from(n: &u16) -> BigDecimal
 
fn from(n: &u16) -> BigDecimal
§impl From<&u32> for BigDecimal
 
impl From<&u32> for BigDecimal
§fn from(n: &u32) -> BigDecimal
 
fn from(n: &u32) -> BigDecimal
§impl From<&u64> for BigDecimal
 
impl From<&u64> for BigDecimal
§fn from(n: &u64) -> BigDecimal
 
fn from(n: &u64) -> BigDecimal
§impl From<&u8> for BigDecimal
 
impl From<&u8> for BigDecimal
§fn from(n: &u8) -> BigDecimal
 
fn from(n: &u8) -> BigDecimal
§impl<T> From<(T, i64)> for BigDecimal
 
impl<T> From<(T, i64)> for BigDecimal
§fn from(_: (T, i64)) -> BigDecimal
 
fn from(_: (T, i64)) -> BigDecimal
§impl From<BigDecimal> for Value
 
impl From<BigDecimal> for Value
§fn from(x: BigDecimal) -> Value
 
fn from(x: BigDecimal) -> Value
§impl From<BigInt> for BigDecimal
 
impl From<BigInt> for BigDecimal
§fn from(int_val: BigInt) -> BigDecimal
 
fn from(int_val: BigInt) -> BigDecimal
§impl From<i128> for BigDecimal
 
impl From<i128> for BigDecimal
§fn from(n: i128) -> BigDecimal
 
fn from(n: i128) -> BigDecimal
§impl From<i16> for BigDecimal
 
impl From<i16> for BigDecimal
§fn from(n: i16) -> BigDecimal
 
fn from(n: i16) -> BigDecimal
§impl From<i32> for BigDecimal
 
impl From<i32> for BigDecimal
§fn from(n: i32) -> BigDecimal
 
fn from(n: i32) -> BigDecimal
§impl From<i64> for BigDecimal
 
impl From<i64> for BigDecimal
§fn from(n: i64) -> BigDecimal
 
fn from(n: i64) -> BigDecimal
§impl From<i8> for BigDecimal
 
impl From<i8> for BigDecimal
§fn from(n: i8) -> BigDecimal
 
fn from(n: i8) -> BigDecimal
§impl From<u128> for BigDecimal
 
impl From<u128> for BigDecimal
§fn from(n: u128) -> BigDecimal
 
fn from(n: u128) -> BigDecimal
§impl From<u16> for BigDecimal
 
impl From<u16> for BigDecimal
§fn from(n: u16) -> BigDecimal
 
fn from(n: u16) -> BigDecimal
§impl From<u32> for BigDecimal
 
impl From<u32> for BigDecimal
§fn from(n: u32) -> BigDecimal
 
fn from(n: u32) -> BigDecimal
§impl From<u64> for BigDecimal
 
impl From<u64> for BigDecimal
§fn from(n: u64) -> BigDecimal
 
fn from(n: u64) -> BigDecimal
§impl From<u8> for BigDecimal
 
impl From<u8> for BigDecimal
§fn from(n: u8) -> BigDecimal
 
fn from(n: u8) -> BigDecimal
§impl FromPrimitive for BigDecimal
 
impl FromPrimitive for BigDecimal
§fn from_i64(n: i64) -> Option<BigDecimal>
 
fn from_i64(n: i64) -> Option<BigDecimal>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§fn from_u64(n: u64) -> Option<BigDecimal>
 
fn from_u64(n: u64) -> Option<BigDecimal>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§fn from_i128(n: i128) -> Option<BigDecimal>
 
fn from_i128(n: i128) -> Option<BigDecimal>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more§fn from_u128(n: u128) -> Option<BigDecimal>
 
fn from_u128(n: u128) -> Option<BigDecimal>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more§fn from_f32(n: f32) -> Option<BigDecimal>
 
fn from_f32(n: f32) -> Option<BigDecimal>
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§fn from_f64(n: f64) -> Option<BigDecimal>
 
fn from_f64(n: f64) -> Option<BigDecimal>
f64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_isize(n: isize) -> Option<Self>
 
fn from_isize(n: isize) -> Option<Self>
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>
 
fn from_i8(n: i8) -> Option<Self>
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>
 
fn from_i16(n: i16) -> Option<Self>
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>
 
fn from_i32(n: i32) -> Option<Self>
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>
 
fn from_usize(n: usize) -> Option<Self>
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>
 
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.§impl FromStr for BigDecimal
 
impl FromStr for BigDecimal
§impl Hash for BigDecimal
 
impl Hash for BigDecimal
§impl LowerExp for BigDecimal
 
impl LowerExp for BigDecimal
§impl Mul<&BigDecimal> for &BigDecimal
 
impl Mul<&BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &BigDecimal) -> BigDecimal
 
fn mul(self, rhs: &BigDecimal) -> BigDecimal
* operation. Read more§impl<'a> Mul<&'a BigDecimal> for BigDecimal
 
impl<'a> Mul<&'a BigDecimal> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &'a BigDecimal) -> BigDecimal
 
fn mul(self, rhs: &'a BigDecimal) -> BigDecimal
* operation. Read more§impl Mul<&BigInt> for &BigDecimal
 
impl Mul<&BigInt> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &BigInt) -> BigDecimal
 
fn mul(self, rhs: &BigInt) -> BigDecimal
* operation. Read more§impl Mul<&BigInt> for BigDecimal
 
impl Mul<&BigInt> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &BigInt) -> BigDecimal
 
fn mul(self, rhs: &BigInt) -> BigDecimal
* operation. Read more§impl Mul<&i128> for &BigDecimal
 
impl Mul<&i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i128) -> BigDecimal
 
fn mul(self, rhs: &i128) -> BigDecimal
* operation. Read more§impl Mul<&i128> for BigDecimal
 
impl Mul<&i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i128) -> BigDecimal
 
fn mul(self, rhs: &i128) -> BigDecimal
* operation. Read more§impl Mul<&i16> for &BigDecimal
 
impl Mul<&i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i16) -> BigDecimal
 
fn mul(self, rhs: &i16) -> BigDecimal
* operation. Read more§impl Mul<&i16> for BigDecimal
 
impl Mul<&i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i16) -> BigDecimal
 
fn mul(self, rhs: &i16) -> BigDecimal
* operation. Read more§impl Mul<&i32> for &BigDecimal
 
impl Mul<&i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i32) -> BigDecimal
 
fn mul(self, rhs: &i32) -> BigDecimal
* operation. Read more§impl Mul<&i32> for BigDecimal
 
impl Mul<&i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i32) -> BigDecimal
 
fn mul(self, rhs: &i32) -> BigDecimal
* operation. Read more§impl Mul<&i64> for &BigDecimal
 
impl Mul<&i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i64) -> BigDecimal
 
fn mul(self, rhs: &i64) -> BigDecimal
* operation. Read more§impl Mul<&i64> for BigDecimal
 
impl Mul<&i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i64) -> BigDecimal
 
fn mul(self, rhs: &i64) -> BigDecimal
* operation. Read more§impl Mul<&i8> for &BigDecimal
 
impl Mul<&i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i8) -> BigDecimal
 
fn mul(self, rhs: &i8) -> BigDecimal
* operation. Read more§impl Mul<&i8> for BigDecimal
 
impl Mul<&i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &i8) -> BigDecimal
 
fn mul(self, rhs: &i8) -> BigDecimal
* operation. Read more§impl Mul<&u128> for &BigDecimal
 
impl Mul<&u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u128) -> BigDecimal
 
fn mul(self, rhs: &u128) -> BigDecimal
* operation. Read more§impl Mul<&u128> for BigDecimal
 
impl Mul<&u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u128) -> BigDecimal
 
fn mul(self, rhs: &u128) -> BigDecimal
* operation. Read more§impl Mul<&u16> for &BigDecimal
 
impl Mul<&u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u16) -> BigDecimal
 
fn mul(self, rhs: &u16) -> BigDecimal
* operation. Read more§impl Mul<&u16> for BigDecimal
 
impl Mul<&u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u16) -> BigDecimal
 
fn mul(self, rhs: &u16) -> BigDecimal
* operation. Read more§impl Mul<&u32> for &BigDecimal
 
impl Mul<&u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u32) -> BigDecimal
 
fn mul(self, rhs: &u32) -> BigDecimal
* operation. Read more§impl Mul<&u32> for BigDecimal
 
impl Mul<&u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u32) -> BigDecimal
 
fn mul(self, rhs: &u32) -> BigDecimal
* operation. Read more§impl Mul<&u64> for &BigDecimal
 
impl Mul<&u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u64) -> BigDecimal
 
fn mul(self, rhs: &u64) -> BigDecimal
* operation. Read more§impl Mul<&u64> for BigDecimal
 
impl Mul<&u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u64) -> BigDecimal
 
fn mul(self, rhs: &u64) -> BigDecimal
* operation. Read more§impl Mul<&u8> for &BigDecimal
 
impl Mul<&u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u8) -> BigDecimal
 
fn mul(self, rhs: &u8) -> BigDecimal
* operation. Read more§impl Mul<&u8> for BigDecimal
 
impl Mul<&u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: &u8) -> BigDecimal
 
fn mul(self, rhs: &u8) -> BigDecimal
* operation. Read more§impl Mul<BigDecimal> for &BigDecimal
 
impl Mul<BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: BigDecimal) -> BigDecimal
 
fn mul(self, rhs: BigDecimal) -> BigDecimal
* operation. Read more§impl Mul<BigInt> for &BigDecimal
 
impl Mul<BigInt> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: BigInt) -> BigDecimal
 
fn mul(self, rhs: BigInt) -> BigDecimal
* operation. Read more§impl Mul<BigInt> for BigDecimal
 
impl Mul<BigInt> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: BigInt) -> BigDecimal
 
fn mul(self, rhs: BigInt) -> BigDecimal
* operation. Read more§impl Mul<i128> for &BigDecimal
 
impl Mul<i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i128) -> BigDecimal
 
fn mul(self, rhs: i128) -> BigDecimal
* operation. Read more§impl Mul<i128> for BigDecimal
 
impl Mul<i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i128) -> BigDecimal
 
fn mul(self, rhs: i128) -> BigDecimal
* operation. Read more§impl Mul<i16> for &BigDecimal
 
impl Mul<i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i16) -> BigDecimal
 
fn mul(self, rhs: i16) -> BigDecimal
* operation. Read more§impl Mul<i16> for BigDecimal
 
impl Mul<i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i16) -> BigDecimal
 
fn mul(self, rhs: i16) -> BigDecimal
* operation. Read more§impl Mul<i32> for &BigDecimal
 
impl Mul<i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i32) -> BigDecimal
 
fn mul(self, rhs: i32) -> BigDecimal
* operation. Read more§impl Mul<i32> for BigDecimal
 
impl Mul<i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i32) -> BigDecimal
 
fn mul(self, rhs: i32) -> BigDecimal
* operation. Read more§impl Mul<i64> for &BigDecimal
 
impl Mul<i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i64) -> BigDecimal
 
fn mul(self, rhs: i64) -> BigDecimal
* operation. Read more§impl Mul<i64> for BigDecimal
 
impl Mul<i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i64) -> BigDecimal
 
fn mul(self, rhs: i64) -> BigDecimal
* operation. Read more§impl Mul<i8> for &BigDecimal
 
impl Mul<i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i8) -> BigDecimal
 
fn mul(self, rhs: i8) -> BigDecimal
* operation. Read more§impl Mul<i8> for BigDecimal
 
impl Mul<i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: i8) -> BigDecimal
 
fn mul(self, rhs: i8) -> BigDecimal
* operation. Read more§impl Mul<u128> for &BigDecimal
 
impl Mul<u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u128) -> BigDecimal
 
fn mul(self, rhs: u128) -> BigDecimal
* operation. Read more§impl Mul<u128> for BigDecimal
 
impl Mul<u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u128) -> BigDecimal
 
fn mul(self, rhs: u128) -> BigDecimal
* operation. Read more§impl Mul<u16> for &BigDecimal
 
impl Mul<u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u16) -> BigDecimal
 
fn mul(self, rhs: u16) -> BigDecimal
* operation. Read more§impl Mul<u16> for BigDecimal
 
impl Mul<u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u16) -> BigDecimal
 
fn mul(self, rhs: u16) -> BigDecimal
* operation. Read more§impl Mul<u32> for &BigDecimal
 
impl Mul<u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u32) -> BigDecimal
 
fn mul(self, rhs: u32) -> BigDecimal
* operation. Read more§impl Mul<u32> for BigDecimal
 
impl Mul<u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u32) -> BigDecimal
 
fn mul(self, rhs: u32) -> BigDecimal
* operation. Read more§impl Mul<u64> for &BigDecimal
 
impl Mul<u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u64) -> BigDecimal
 
fn mul(self, rhs: u64) -> BigDecimal
* operation. Read more§impl Mul<u64> for BigDecimal
 
impl Mul<u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u64) -> BigDecimal
 
fn mul(self, rhs: u64) -> BigDecimal
* operation. Read more§impl Mul<u8> for &BigDecimal
 
impl Mul<u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u8) -> BigDecimal
 
fn mul(self, rhs: u8) -> BigDecimal
* operation. Read more§impl Mul<u8> for BigDecimal
 
impl Mul<u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: u8) -> BigDecimal
 
fn mul(self, rhs: u8) -> BigDecimal
* operation. Read more§impl Mul for BigDecimal
 
impl Mul for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
* operator.§fn mul(self, rhs: BigDecimal) -> BigDecimal
 
fn mul(self, rhs: BigDecimal) -> BigDecimal
* operation. Read more§impl MulAssign<&BigDecimal> for BigDecimal
 
impl MulAssign<&BigDecimal> for BigDecimal
§fn mul_assign(&mut self, rhs: &BigDecimal)
 
fn mul_assign(&mut self, rhs: &BigDecimal)
*= operation. Read more§impl MulAssign<&BigInt> for BigDecimal
 
impl MulAssign<&BigInt> for BigDecimal
§fn mul_assign(&mut self, rhs: &BigInt)
 
fn mul_assign(&mut self, rhs: &BigInt)
*= operation. Read more§impl MulAssign<&i128> for BigDecimal
 
impl MulAssign<&i128> for BigDecimal
§fn mul_assign(&mut self, rhs: &i128)
 
fn mul_assign(&mut self, rhs: &i128)
*= operation. Read more§impl MulAssign<&i16> for BigDecimal
 
impl MulAssign<&i16> for BigDecimal
§fn mul_assign(&mut self, rhs: &i16)
 
fn mul_assign(&mut self, rhs: &i16)
*= operation. Read more§impl MulAssign<&i32> for BigDecimal
 
impl MulAssign<&i32> for BigDecimal
§fn mul_assign(&mut self, rhs: &i32)
 
fn mul_assign(&mut self, rhs: &i32)
*= operation. Read more§impl MulAssign<&i64> for BigDecimal
 
impl MulAssign<&i64> for BigDecimal
§fn mul_assign(&mut self, rhs: &i64)
 
fn mul_assign(&mut self, rhs: &i64)
*= operation. Read more§impl MulAssign<&i8> for BigDecimal
 
impl MulAssign<&i8> for BigDecimal
§fn mul_assign(&mut self, rhs: &i8)
 
fn mul_assign(&mut self, rhs: &i8)
*= operation. Read more§impl MulAssign<&u128> for BigDecimal
 
impl MulAssign<&u128> for BigDecimal
§fn mul_assign(&mut self, rhs: &u128)
 
fn mul_assign(&mut self, rhs: &u128)
*= operation. Read more§impl MulAssign<&u16> for BigDecimal
 
impl MulAssign<&u16> for BigDecimal
§fn mul_assign(&mut self, rhs: &u16)
 
fn mul_assign(&mut self, rhs: &u16)
*= operation. Read more§impl MulAssign<&u32> for BigDecimal
 
impl MulAssign<&u32> for BigDecimal
§fn mul_assign(&mut self, rhs: &u32)
 
fn mul_assign(&mut self, rhs: &u32)
*= operation. Read more§impl MulAssign<&u64> for BigDecimal
 
impl MulAssign<&u64> for BigDecimal
§fn mul_assign(&mut self, rhs: &u64)
 
fn mul_assign(&mut self, rhs: &u64)
*= operation. Read more§impl MulAssign<&u8> for BigDecimal
 
impl MulAssign<&u8> for BigDecimal
§fn mul_assign(&mut self, rhs: &u8)
 
fn mul_assign(&mut self, rhs: &u8)
*= operation. Read more§impl MulAssign<BigInt> for BigDecimal
 
impl MulAssign<BigInt> for BigDecimal
§fn mul_assign(&mut self, rhs: BigInt)
 
fn mul_assign(&mut self, rhs: BigInt)
*= operation. Read more§impl MulAssign<i128> for BigDecimal
 
impl MulAssign<i128> for BigDecimal
§fn mul_assign(&mut self, rhs: i128)
 
fn mul_assign(&mut self, rhs: i128)
*= operation. Read more§impl MulAssign<i16> for BigDecimal
 
impl MulAssign<i16> for BigDecimal
§fn mul_assign(&mut self, rhs: i16)
 
fn mul_assign(&mut self, rhs: i16)
*= operation. Read more§impl MulAssign<i32> for BigDecimal
 
impl MulAssign<i32> for BigDecimal
§fn mul_assign(&mut self, rhs: i32)
 
fn mul_assign(&mut self, rhs: i32)
*= operation. Read more§impl MulAssign<i64> for BigDecimal
 
impl MulAssign<i64> for BigDecimal
§fn mul_assign(&mut self, rhs: i64)
 
fn mul_assign(&mut self, rhs: i64)
*= operation. Read more§impl MulAssign<i8> for BigDecimal
 
impl MulAssign<i8> for BigDecimal
§fn mul_assign(&mut self, rhs: i8)
 
fn mul_assign(&mut self, rhs: i8)
*= operation. Read more§impl MulAssign<u128> for BigDecimal
 
impl MulAssign<u128> for BigDecimal
§fn mul_assign(&mut self, rhs: u128)
 
fn mul_assign(&mut self, rhs: u128)
*= operation. Read more§impl MulAssign<u16> for BigDecimal
 
impl MulAssign<u16> for BigDecimal
§fn mul_assign(&mut self, rhs: u16)
 
fn mul_assign(&mut self, rhs: u16)
*= operation. Read more§impl MulAssign<u32> for BigDecimal
 
impl MulAssign<u32> for BigDecimal
§fn mul_assign(&mut self, rhs: u32)
 
fn mul_assign(&mut self, rhs: u32)
*= operation. Read more§impl MulAssign<u64> for BigDecimal
 
impl MulAssign<u64> for BigDecimal
§fn mul_assign(&mut self, rhs: u64)
 
fn mul_assign(&mut self, rhs: u64)
*= operation. Read more§impl MulAssign<u8> for BigDecimal
 
impl MulAssign<u8> for BigDecimal
§fn mul_assign(&mut self, rhs: u8)
 
fn mul_assign(&mut self, rhs: u8)
*= operation. Read more§impl MulAssign for BigDecimal
 
impl MulAssign for BigDecimal
§fn mul_assign(&mut self, other: BigDecimal)
 
fn mul_assign(&mut self, other: BigDecimal)
*= operation. Read more§impl Neg for &BigDecimal
 
impl Neg for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn neg(self) -> BigDecimal
 
fn neg(self) -> BigDecimal
- operation. Read more§impl Neg for BigDecimal
 
impl Neg for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn neg(self) -> BigDecimal
 
fn neg(self) -> BigDecimal
- operation. Read more§impl Num for BigDecimal
 
impl Num for BigDecimal
§fn from_str_radix(
    s: &str,
    radix: u32,
) -> Result<BigDecimal, ParseBigDecimalError>
 
fn from_str_radix( s: &str, radix: u32, ) -> Result<BigDecimal, ParseBigDecimalError>
Creates and initializes a BigDecimal.
type FromStrRadixErr = ParseBigDecimalError
§impl One for BigDecimal
 
impl One for BigDecimal
§fn one() -> BigDecimal
 
fn one() -> BigDecimal
§impl Ord for BigDecimal
 
impl Ord for BigDecimal
§impl PartialEq for BigDecimal
 
impl PartialEq for BigDecimal
§impl PartialOrd for BigDecimal
 
impl PartialOrd for BigDecimal
§impl PgHasArrayType for BigDecimal
 
impl PgHasArrayType for BigDecimal
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
§impl Rem<&BigDecimal> for &BigDecimal
 
impl Rem<&BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
% operator.§fn rem(self, other: &BigDecimal) -> BigDecimal
 
fn rem(self, other: &BigDecimal) -> BigDecimal
% operation. Read more§impl Rem<&BigDecimal> for BigDecimal
 
impl Rem<&BigDecimal> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
% operator.§fn rem(self, other: &BigDecimal) -> BigDecimal
 
fn rem(self, other: &BigDecimal) -> BigDecimal
% operation. Read more§impl Rem<BigDecimal> for &BigDecimal
 
impl Rem<BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
% operator.§fn rem(self, other: BigDecimal) -> BigDecimal
 
fn rem(self, other: BigDecimal) -> BigDecimal
% operation. Read more§impl Rem for BigDecimal
 
impl Rem for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
% operator.§fn rem(self, other: BigDecimal) -> BigDecimal
 
fn rem(self, other: BigDecimal) -> BigDecimal
% operation. Read more§impl RemAssign<&BigDecimal> for BigDecimal
 
impl RemAssign<&BigDecimal> for BigDecimal
§fn rem_assign(&mut self, other: &BigDecimal)
 
fn rem_assign(&mut self, other: &BigDecimal)
%= operation. Read more§impl Serialize for BigDecimal
 
impl Serialize for BigDecimal
§fn serialize<S>(
    &self,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
 
fn serialize<S>(
    &self,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
§impl Signed for BigDecimal
 
impl Signed for BigDecimal
§fn abs(&self) -> BigDecimal
 
fn abs(&self) -> BigDecimal
§fn abs_sub(&self, other: &BigDecimal) -> BigDecimal
 
fn abs_sub(&self, other: &BigDecimal) -> BigDecimal
§fn signum(&self) -> BigDecimal
 
fn signum(&self) -> BigDecimal
§fn is_positive(&self) -> bool
 
fn is_positive(&self) -> bool
§fn is_negative(&self) -> bool
 
fn is_negative(&self) -> bool
§impl Sub<&i128> for &BigDecimal
 
impl Sub<&i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i128) -> BigDecimal
 
fn sub(self, rhs: &i128) -> BigDecimal
- operation. Read more§impl Sub<&i128> for BigDecimal
 
impl Sub<&i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i128) -> BigDecimal
 
fn sub(self, rhs: &i128) -> BigDecimal
- operation. Read more§impl Sub<&i16> for &BigDecimal
 
impl Sub<&i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i16) -> BigDecimal
 
fn sub(self, rhs: &i16) -> BigDecimal
- operation. Read more§impl Sub<&i16> for BigDecimal
 
impl Sub<&i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i16) -> BigDecimal
 
fn sub(self, rhs: &i16) -> BigDecimal
- operation. Read more§impl Sub<&i32> for &BigDecimal
 
impl Sub<&i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i32) -> BigDecimal
 
fn sub(self, rhs: &i32) -> BigDecimal
- operation. Read more§impl Sub<&i32> for BigDecimal
 
impl Sub<&i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i32) -> BigDecimal
 
fn sub(self, rhs: &i32) -> BigDecimal
- operation. Read more§impl Sub<&i64> for &BigDecimal
 
impl Sub<&i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i64) -> BigDecimal
 
fn sub(self, rhs: &i64) -> BigDecimal
- operation. Read more§impl Sub<&i64> for BigDecimal
 
impl Sub<&i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i64) -> BigDecimal
 
fn sub(self, rhs: &i64) -> BigDecimal
- operation. Read more§impl Sub<&i8> for &BigDecimal
 
impl Sub<&i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i8) -> BigDecimal
 
fn sub(self, rhs: &i8) -> BigDecimal
- operation. Read more§impl Sub<&i8> for BigDecimal
 
impl Sub<&i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &i8) -> BigDecimal
 
fn sub(self, rhs: &i8) -> BigDecimal
- operation. Read more§impl Sub<&u128> for &BigDecimal
 
impl Sub<&u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u128) -> BigDecimal
 
fn sub(self, rhs: &u128) -> BigDecimal
- operation. Read more§impl Sub<&u128> for BigDecimal
 
impl Sub<&u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u128) -> BigDecimal
 
fn sub(self, rhs: &u128) -> BigDecimal
- operation. Read more§impl Sub<&u16> for &BigDecimal
 
impl Sub<&u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u16) -> BigDecimal
 
fn sub(self, rhs: &u16) -> BigDecimal
- operation. Read more§impl Sub<&u16> for BigDecimal
 
impl Sub<&u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u16) -> BigDecimal
 
fn sub(self, rhs: &u16) -> BigDecimal
- operation. Read more§impl Sub<&u32> for &BigDecimal
 
impl Sub<&u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u32) -> BigDecimal
 
fn sub(self, rhs: &u32) -> BigDecimal
- operation. Read more§impl Sub<&u32> for BigDecimal
 
impl Sub<&u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u32) -> BigDecimal
 
fn sub(self, rhs: &u32) -> BigDecimal
- operation. Read more§impl Sub<&u64> for &BigDecimal
 
impl Sub<&u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u64) -> BigDecimal
 
fn sub(self, rhs: &u64) -> BigDecimal
- operation. Read more§impl Sub<&u64> for BigDecimal
 
impl Sub<&u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u64) -> BigDecimal
 
fn sub(self, rhs: &u64) -> BigDecimal
- operation. Read more§impl Sub<&u8> for &BigDecimal
 
impl Sub<&u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u8) -> BigDecimal
 
fn sub(self, rhs: &u8) -> BigDecimal
- operation. Read more§impl Sub<&u8> for BigDecimal
 
impl Sub<&u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: &u8) -> BigDecimal
 
fn sub(self, rhs: &u8) -> BigDecimal
- operation. Read more§impl Sub<BigDecimal> for &BigDecimal
 
impl Sub<BigDecimal> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: BigDecimal) -> BigDecimal
 
fn sub(self, rhs: BigDecimal) -> BigDecimal
- operation. Read more§impl Sub<BigInt> for &BigDecimal
 
impl Sub<BigInt> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: BigInt) -> BigDecimal
 
fn sub(self, rhs: BigInt) -> BigDecimal
- operation. Read more§impl Sub<BigInt> for BigDecimal
 
impl Sub<BigInt> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: BigInt) -> BigDecimal
 
fn sub(self, rhs: BigInt) -> BigDecimal
- operation. Read more§impl<'a, T> Sub<T> for &BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
 
impl<'a, T> Sub<T> for &BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: T) -> BigDecimal
 
fn sub(self, rhs: T) -> BigDecimal
- operation. Read more§impl<'a, T> Sub<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
 
impl<'a, T> Sub<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'a>>,
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: T) -> BigDecimal
 
fn sub(self, rhs: T) -> BigDecimal
- operation. Read more§impl Sub<i128> for &BigDecimal
 
impl Sub<i128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i128) -> BigDecimal
 
fn sub(self, rhs: i128) -> BigDecimal
- operation. Read more§impl Sub<i128> for BigDecimal
 
impl Sub<i128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i128) -> BigDecimal
 
fn sub(self, rhs: i128) -> BigDecimal
- operation. Read more§impl Sub<i16> for &BigDecimal
 
impl Sub<i16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i16) -> BigDecimal
 
fn sub(self, rhs: i16) -> BigDecimal
- operation. Read more§impl Sub<i16> for BigDecimal
 
impl Sub<i16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i16) -> BigDecimal
 
fn sub(self, rhs: i16) -> BigDecimal
- operation. Read more§impl Sub<i32> for &BigDecimal
 
impl Sub<i32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i32) -> BigDecimal
 
fn sub(self, rhs: i32) -> BigDecimal
- operation. Read more§impl Sub<i32> for BigDecimal
 
impl Sub<i32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i32) -> BigDecimal
 
fn sub(self, rhs: i32) -> BigDecimal
- operation. Read more§impl Sub<i64> for &BigDecimal
 
impl Sub<i64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i64) -> BigDecimal
 
fn sub(self, rhs: i64) -> BigDecimal
- operation. Read more§impl Sub<i64> for BigDecimal
 
impl Sub<i64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i64) -> BigDecimal
 
fn sub(self, rhs: i64) -> BigDecimal
- operation. Read more§impl Sub<i8> for &BigDecimal
 
impl Sub<i8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i8) -> BigDecimal
 
fn sub(self, rhs: i8) -> BigDecimal
- operation. Read more§impl Sub<i8> for BigDecimal
 
impl Sub<i8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: i8) -> BigDecimal
 
fn sub(self, rhs: i8) -> BigDecimal
- operation. Read more§impl Sub<u128> for &BigDecimal
 
impl Sub<u128> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u128) -> BigDecimal
 
fn sub(self, rhs: u128) -> BigDecimal
- operation. Read more§impl Sub<u128> for BigDecimal
 
impl Sub<u128> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u128) -> BigDecimal
 
fn sub(self, rhs: u128) -> BigDecimal
- operation. Read more§impl Sub<u16> for &BigDecimal
 
impl Sub<u16> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u16) -> BigDecimal
 
fn sub(self, rhs: u16) -> BigDecimal
- operation. Read more§impl Sub<u16> for BigDecimal
 
impl Sub<u16> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u16) -> BigDecimal
 
fn sub(self, rhs: u16) -> BigDecimal
- operation. Read more§impl Sub<u32> for &BigDecimal
 
impl Sub<u32> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u32) -> BigDecimal
 
fn sub(self, rhs: u32) -> BigDecimal
- operation. Read more§impl Sub<u32> for BigDecimal
 
impl Sub<u32> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u32) -> BigDecimal
 
fn sub(self, rhs: u32) -> BigDecimal
- operation. Read more§impl Sub<u64> for &BigDecimal
 
impl Sub<u64> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u64) -> BigDecimal
 
fn sub(self, rhs: u64) -> BigDecimal
- operation. Read more§impl Sub<u64> for BigDecimal
 
impl Sub<u64> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u64) -> BigDecimal
 
fn sub(self, rhs: u64) -> BigDecimal
- operation. Read more§impl Sub<u8> for &BigDecimal
 
impl Sub<u8> for &BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u8) -> BigDecimal
 
fn sub(self, rhs: u8) -> BigDecimal
- operation. Read more§impl Sub<u8> for BigDecimal
 
impl Sub<u8> for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: u8) -> BigDecimal
 
fn sub(self, rhs: u8) -> BigDecimal
- operation. Read more§impl Sub for BigDecimal
 
impl Sub for BigDecimal
§type Output = BigDecimal
 
type Output = BigDecimal
- operator.§fn sub(self, rhs: BigDecimal) -> BigDecimal
 
fn sub(self, rhs: BigDecimal) -> BigDecimal
- operation. Read more§impl SubAssign<&i128> for BigDecimal
 
impl SubAssign<&i128> for BigDecimal
§fn sub_assign(&mut self, rhs: &i128)
 
fn sub_assign(&mut self, rhs: &i128)
-= operation. Read more§impl SubAssign<&i16> for BigDecimal
 
impl SubAssign<&i16> for BigDecimal
§fn sub_assign(&mut self, rhs: &i16)
 
fn sub_assign(&mut self, rhs: &i16)
-= operation. Read more§impl SubAssign<&i32> for BigDecimal
 
impl SubAssign<&i32> for BigDecimal
§fn sub_assign(&mut self, rhs: &i32)
 
fn sub_assign(&mut self, rhs: &i32)
-= operation. Read more§impl SubAssign<&i64> for BigDecimal
 
impl SubAssign<&i64> for BigDecimal
§fn sub_assign(&mut self, rhs: &i64)
 
fn sub_assign(&mut self, rhs: &i64)
-= operation. Read more§impl SubAssign<&i8> for BigDecimal
 
impl SubAssign<&i8> for BigDecimal
§fn sub_assign(&mut self, rhs: &i8)
 
fn sub_assign(&mut self, rhs: &i8)
-= operation. Read more§impl SubAssign<&u128> for BigDecimal
 
impl SubAssign<&u128> for BigDecimal
§fn sub_assign(&mut self, rhs: &u128)
 
fn sub_assign(&mut self, rhs: &u128)
-= operation. Read more§impl SubAssign<&u16> for BigDecimal
 
impl SubAssign<&u16> for BigDecimal
§fn sub_assign(&mut self, rhs: &u16)
 
fn sub_assign(&mut self, rhs: &u16)
-= operation. Read more§impl SubAssign<&u32> for BigDecimal
 
impl SubAssign<&u32> for BigDecimal
§fn sub_assign(&mut self, rhs: &u32)
 
fn sub_assign(&mut self, rhs: &u32)
-= operation. Read more§impl SubAssign<&u64> for BigDecimal
 
impl SubAssign<&u64> for BigDecimal
§fn sub_assign(&mut self, rhs: &u64)
 
fn sub_assign(&mut self, rhs: &u64)
-= operation. Read more§impl SubAssign<&u8> for BigDecimal
 
impl SubAssign<&u8> for BigDecimal
§fn sub_assign(&mut self, rhs: &u8)
 
fn sub_assign(&mut self, rhs: &u8)
-= operation. Read more§impl SubAssign<BigInt> for BigDecimal
 
impl SubAssign<BigInt> for BigDecimal
§fn sub_assign(&mut self, rhs: BigInt)
 
fn sub_assign(&mut self, rhs: BigInt)
-= operation. Read more§impl<'rhs, T> SubAssign<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'rhs>>,
 
impl<'rhs, T> SubAssign<T> for BigDecimalwhere
    T: Into<BigDecimalRef<'rhs>>,
§fn sub_assign(&mut self, rhs: T)
 
fn sub_assign(&mut self, rhs: T)
-= operation. Read more§impl SubAssign<i128> for BigDecimal
 
impl SubAssign<i128> for BigDecimal
§fn sub_assign(&mut self, rhs: i128)
 
fn sub_assign(&mut self, rhs: i128)
-= operation. Read more§impl SubAssign<i16> for BigDecimal
 
impl SubAssign<i16> for BigDecimal
§fn sub_assign(&mut self, rhs: i16)
 
fn sub_assign(&mut self, rhs: i16)
-= operation. Read more§impl SubAssign<i32> for BigDecimal
 
impl SubAssign<i32> for BigDecimal
§fn sub_assign(&mut self, rhs: i32)
 
fn sub_assign(&mut self, rhs: i32)
-= operation. Read more§impl SubAssign<i64> for BigDecimal
 
impl SubAssign<i64> for BigDecimal
§fn sub_assign(&mut self, rhs: i64)
 
fn sub_assign(&mut self, rhs: i64)
-= operation. Read more§impl SubAssign<i8> for BigDecimal
 
impl SubAssign<i8> for BigDecimal
§fn sub_assign(&mut self, rhs: i8)
 
fn sub_assign(&mut self, rhs: i8)
-= operation. Read more§impl SubAssign<u128> for BigDecimal
 
impl SubAssign<u128> for BigDecimal
§fn sub_assign(&mut self, rhs: u128)
 
fn sub_assign(&mut self, rhs: u128)
-= operation. Read more§impl SubAssign<u16> for BigDecimal
 
impl SubAssign<u16> for BigDecimal
§fn sub_assign(&mut self, rhs: u16)
 
fn sub_assign(&mut self, rhs: u16)
-= operation. Read more§impl SubAssign<u32> for BigDecimal
 
impl SubAssign<u32> for BigDecimal
§fn sub_assign(&mut self, rhs: u32)
 
fn sub_assign(&mut self, rhs: u32)
-= operation. Read more§impl SubAssign<u64> for BigDecimal
 
impl SubAssign<u64> for BigDecimal
§fn sub_assign(&mut self, rhs: u64)
 
fn sub_assign(&mut self, rhs: u64)
-= operation. Read more§impl SubAssign<u8> for BigDecimal
 
impl SubAssign<u8> for BigDecimal
§fn sub_assign(&mut self, rhs: u8)
 
fn sub_assign(&mut self, rhs: u8)
-= operation. Read more§impl SubAssign for BigDecimal
 
impl SubAssign for BigDecimal
§fn sub_assign(&mut self, rhs: BigDecimal)
 
fn sub_assign(&mut self, rhs: BigDecimal)
-= operation. Read more§impl<'a> Sum<&'a BigDecimal> for BigDecimal
 
impl<'a> Sum<&'a BigDecimal> for BigDecimal
§fn sum<I>(iter: I) -> BigDecimalwhere
    I: Iterator<Item = &'a BigDecimal>,
 
fn sum<I>(iter: I) -> BigDecimalwhere
    I: Iterator<Item = &'a BigDecimal>,
Self from the elements by “summing up”
the items.§impl Sum for BigDecimal
 
impl Sum for BigDecimal
§fn sum<I>(iter: I) -> BigDecimalwhere
    I: Iterator<Item = BigDecimal>,
 
fn sum<I>(iter: I) -> BigDecimalwhere
    I: Iterator<Item = BigDecimal>,
Self from the elements by “summing up”
the items.§impl ToBigInt for BigDecimal
 
impl ToBigInt for BigDecimal
§impl ToPrimitive for BigDecimal
 
impl ToPrimitive for BigDecimal
§fn to_i64(&self) -> Option<i64>
 
fn to_i64(&self) -> Option<i64>
self to an i64. If the value cannot be
represented by an i64, then None is returned.§fn to_i128(&self) -> Option<i128>
 
fn to_i128(&self) -> Option<i128>
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read more§fn to_u64(&self) -> Option<u64>
 
fn to_u64(&self) -> Option<u64>
self to a u64. If the value cannot be
represented by a u64, then None is returned.§fn to_u128(&self) -> Option<u128>
 
fn to_u128(&self) -> Option<u128>
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read more§fn to_f64(&self) -> Option<f64>
 
fn to_f64(&self) -> Option<f64>
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 moreSource§fn to_isize(&self) -> Option<isize>
 
fn to_isize(&self) -> Option<isize>
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
 
fn to_i8(&self) -> Option<i8>
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
 
fn to_i16(&self) -> Option<i16>
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
 
fn to_i32(&self) -> Option<i32>
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_usize(&self) -> Option<usize>
 
fn to_usize(&self) -> Option<usize>
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
 
fn to_u8(&self) -> Option<u8>
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
 
fn to_u16(&self) -> Option<u16>
self to a u16. If the value cannot be
represented by a u16, then None is returned.§impl TryFrom<&PgNumeric> for BigDecimal
 
impl TryFrom<&PgNumeric> for BigDecimal
§impl TryFrom<PgNumeric> for BigDecimal
 
impl TryFrom<PgNumeric> for BigDecimal
§impl TryFrom<f32> for BigDecimal
 
impl TryFrom<f32> for BigDecimal
§impl TryFrom<f64> for BigDecimal
 
impl TryFrom<f64> for BigDecimal
§impl TryGetable for BigDecimal
 
impl TryGetable for BigDecimal
§fn try_get_by<I>(res: &QueryResult, idx: I) -> Result<BigDecimal, TryGetError>where
    I: ColIdx,
 
fn try_get_by<I>(res: &QueryResult, idx: I) -> Result<BigDecimal, TryGetError>where
    I: ColIdx,
§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
 
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
§fn try_get_by_index(
    res: &QueryResult,
    index: usize,
) -> Result<Self, TryGetError>
 
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
§impl Type<MySql> for BigDecimal
 
impl Type<MySql> for BigDecimal
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
§impl Type<Postgres> for BigDecimal
 
impl Type<Postgres> for BigDecimal
§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
§impl UpperExp for BigDecimal
 
impl UpperExp for BigDecimal
§impl ValueType for BigDecimal
 
impl ValueType for BigDecimal
fn try_from(v: Value) -> Result<BigDecimal, ValueTypeErr>
fn type_name() -> String
fn array_type() -> ArrayType
fn column_type() -> ColumnType
fn unwrap(v: Value) -> Self
fn expect(v: Value, msg: &str) -> Self
fn enum_type_name() -> Option<&'static str>
§impl Zero for BigDecimal
 
impl Zero for BigDecimal
impl Eq for BigDecimal
impl NotU8 for BigDecimal
Auto Trait Implementations§
impl Freeze for BigDecimal
impl RefUnwindSafe for BigDecimal
impl Send for BigDecimal
impl Sync for BigDecimal
impl Unpin for BigDecimal
impl UnwindSafe for BigDecimal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
§impl<T> ExprTrait for Twhere
    T: Into<SimpleExpr>,
 
impl<T> ExprTrait for Twhere
    T: Into<SimpleExpr>,
§fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
 
fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
AS enum expression. Read more§fn binary<O, R>(self, op: O, right: R) -> SimpleExpr
 
fn binary<O, R>(self, op: O, right: R) -> SimpleExpr
§fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
 
fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
CAST AS expression. Read more§fn unary(self, op: UnOper) -> SimpleExpr
 
fn unary(self, op: UnOper) -> SimpleExpr
§fn add<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn add<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
fn and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn between<A, B>(self, a: A, b: B) -> SimpleExpr
 
fn between<A, B>(self, a: A, b: B) -> SimpleExpr
BETWEEN expression. Read more§fn div<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn div<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn eq<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn eq<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
=) expression. Read more§fn equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
 
fn equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
§fn gt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn gt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
>) expression. Read more§fn gte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn gte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
>=) expression. Read more§fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
 
fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
IN sub-query expression. Read more§fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
    V: IntoValueTuple,
    I: IntoIterator<Item = V>,
 
fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
    V: IntoValueTuple,
    I: IntoIterator<Item = V>,
IN sub expression. Read more§fn is<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn is<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
IS expression. Read more§fn is_in<V, I>(self, v: I) -> SimpleExpr
 
fn is_in<V, I>(self, v: I) -> SimpleExpr
IN expression. Read more§fn is_not<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn is_not<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
IS NOT expression. Read more§fn is_not_in<V, I>(self, v: I) -> SimpleExpr
 
fn is_not_in<V, I>(self, v: I) -> SimpleExpr
NOT IN expression. Read more§fn is_not_null(self) -> SimpleExpr
 
fn is_not_null(self) -> SimpleExpr
IS NOT NULL expression. Read more§fn is_null(self) -> SimpleExpr
 
fn is_null(self) -> SimpleExpr
IS NULL expression. Read more§fn left_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn left_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
 
fn like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
LIKE expression. Read more§fn lt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn lt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
<) expression. Read more§fn lte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn lte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
<=) expression. Read more§fn modulo<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn modulo<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn mul<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn mul<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn ne<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn ne<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
<>) expression. Read more§fn not(self) -> SimpleExpr
 
fn not(self) -> SimpleExpr
NOT. Read more§fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
 
fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
NOT BETWEEN expression. Read more§fn not_equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
 
fn not_equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
§fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
 
fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
NOT IN sub-query expression. Read more§fn not_like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
 
fn not_like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
NOT LIKE expression. Read more§fn or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
OR operation. Read more§fn right_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn right_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn sub<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn sub<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn bit_and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn bit_and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§fn bit_or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn bit_or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
§impl<I> FromRadix10 for I
 
impl<I> FromRadix10 for I
§fn from_radix_10(text: &[u8]) -> (I, usize)
 
fn from_radix_10(text: &[u8]) -> (I, usize)
§impl<I> FromRadix10Signed for I
 
impl<I> FromRadix10Signed for I
§fn from_radix_10_signed(text: &[u8]) -> (I, usize)
 
fn from_radix_10_signed(text: &[u8]) -> (I, usize)
§impl<I> FromRadix16 for I
 
impl<I> FromRadix16 for I
§fn from_radix_16(text: &[u8]) -> (I, usize)
 
fn from_radix_16(text: &[u8]) -> (I, usize)
§impl<V> FromValueTuple for V
 
impl<V> FromValueTuple for V
fn from_value_tuple<I>(i: I) -> Vwhere
    I: IntoValueTuple,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more