Struct decimal_rs::Decimal

source ·
#[repr(C, packed(4))]
pub struct Decimal { /* private fields */ }
Expand description

High precision decimal.

Implementations§

source§

impl Decimal

source

pub const ZERO: Decimal = _

Zero value, i.e. 0.

source

pub const ONE: Decimal = _

i.e. 1.

source

pub const unsafe fn from_parts_unchecked( int_val: u128, scale: i16, negative: bool ) -> Decimal

Creates a Decimal from parts without boundary checking.

Safety

User have to guarantee that int_val has at most 38 tens digits and scale ranges from [-126, 130].

source

pub const fn from_parts( int_val: u128, scale: i16, negative: bool ) -> Result<Decimal, DecimalConvertError>

Creates a Decimal from parts.

int_val has at most 38 tens digits, scale ranges from [-126, 130].

source

pub const fn into_parts(self) -> (u128, i16, bool)

Consumes the Decimal, returning (int_val, scale, negative).

source

pub fn precision(&self) -> u8

Returns the precision, i.e. the count of significant digits in this decimal.

source

pub const fn scale(&self) -> i16

Returns the scale, i.e. the count of decimal digits in the fractional part. A positive scale means a negative power of 10.

source

pub const fn is_sign_negative(&self) -> bool

Returns true if the sign bit of the decimal is negative.

source

pub const fn is_sign_positive(&self) -> bool

Returns true if the sign bit of the decimal is positive.

source

pub const fn is_zero(&self) -> bool

Checks if self is zero.

source

pub const fn abs(&self) -> Decimal

Computes the absolute value of self.

source

pub fn encode<W: Write>(&self, writer: W) -> Result<usize>

Encodes self to writer as binary bytes. Returns total size on success, which is not larger than MAX_BINARY_SIZE.

source

pub fn compact_encode<W: Write>(&self, writer: W) -> Result<usize>

Encodes self to writer as binary bytes. Returns total size on success, which is not larger than MAX_BINARY_SIZE.

The only different from Decimal::encode is it will compact encoded bytes when self is zero or small positive integer.

source

pub fn decode(bytes: &[u8]) -> Decimal

Decodes a Decimal from binary bytes.

source

pub fn ceil(&self) -> Decimal

Computes the smallest integer that is greater than or equal to self.

source

pub fn floor(&self) -> Decimal

Computes the largest integer that is equal to or less than self.

source

pub fn trunc(&self, scale: i16) -> Decimal

Truncate a value to have scale digits after the decimal point. We allow negative scale, implying a truncation before the decimal point.

source

pub fn round(&self, scale: i16) -> Decimal

Round a value to have scale digits after the decimal point. We allow negative scale, implying rounding before the decimal point.

source

pub fn round_with_precision(&mut self, precision: u8, scale: i16) -> bool

Do bounds checking and rounding according to precision and scale.

Returns true if overflows.

source

pub fn normalize_to_scale(&self, scale: i16) -> Decimal

Normalize a Decimal’s scale toward specified scale.

source

pub fn normalize(&self) -> Decimal

Normalize a Decimal’s scale toward zero.

source

pub fn checked_add(&self, other: impl AsRef<Decimal>) -> Option<Decimal>

Add two decimals. returning None if overflow occurred.

source

pub unsafe fn add_with_same_scale_unchecked<const DECIMAL_MODEL: u8>( &self, other: &Decimal, scale: i16 ) -> Decimal

Add two decimals.

Safety

Make sure the decimal is zero or the scale is the same and the result is not overflow.

source

pub unsafe fn add_with_same_scale_and_negative_unchecked<const DECIMAL_MODEL: u8>( &self, other: &Decimal, scale: i16, negative: bool ) -> Decimal

Add two decimals.

Safety

Make sure the follow conditions

  1. decimal is zero or the scale is the same.
  2. the result is not overflow.
  3. decimal is zero or the negative is the same.
source

pub fn checked_sub(&self, other: impl AsRef<Decimal>) -> Option<Decimal>

Subtract one decimal from another, returning None if overflow occurred.

source

pub unsafe fn sub_with_same_scale_unchecked<const DECIMAL_MODEL: u8>( &self, other: &Decimal, scale: i16 ) -> Decimal

Subtract one decimal from another,

Safety

Make sure two decimal have the same scale or is zero and the result is not overflow.

source

pub fn checked_mul(&self, other: impl AsRef<Decimal>) -> Option<Decimal>

Calculate the product of two decimals, returning None if overflow occurred.

source

pub unsafe fn mul_unchecked<const DECIMAL_MODEL: u8>( &self, other: &Decimal, scale: i16 ) -> Decimal

Calculate the product of two decimals,

Safety

Make sure the result scale is scale and the result is not overflow.

source

pub fn checked_div(&self, other: impl AsRef<Decimal>) -> Option<Decimal>

Checked decimal division. Computes self / other, returning None if other == 0 or the division results in overflow.

source

pub fn checked_rem(&self, other: impl AsRef<Decimal>) -> Option<Decimal>

Checked decimal remainder. Computes self % other, returning None if rhs == 0 or the division results in overflow.

source

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

Computes the square root of a decimal, returning None if self is negative or the results in overflow.

source

pub fn simply_format<W: Write>(&self, w: W) -> Result<(), DecimalFormatError>

Formats the decimal, including sign and omitting integer zero in fractional.

source

pub fn format_with_sci<W: Write>( &self, max_width: u16, w: W ) -> Result<(), DecimalFormatError>

Formats the decimal, using scientific notation depending on the width.

source

pub fn format_with_sci_forced<W: Write>( &self, expect_scale: i16, with_zero_before_dot: bool, w: W ) -> Result<(), DecimalFormatError>

Formats the decimal, forced using scientific notation depending on the scale.

In particular, the scientific notation is also enforced for 0.
When the decimal is 0 and expect_scale greater than 0, with_zero_before_dot determines whether there is a 0 before the decimal point.

source

pub fn format_to_hex<W: Write>( &self, is_uppercase: bool, w: W ) -> Result<(), DecimalFormatError>

Format decimal as a hexadecimal number.

A maximum of 63 digits hexadecimal positive number are supported.

source

pub fn format_to_json<W: Write>(&self, w: W) -> Result<(), DecimalFormatError>

Formats the decimal in the json number format, using scientific notation depending on the width.

source

pub fn checked_pow(&self, exponent: &Decimal) -> Option<Decimal>

Raise self to the power of exponent, where self and exponent are both decimal, returning None if self == 0 at the same time exponent is negative or self is negative at the same time exponent is a fraction or the result overflowed.

source

pub fn ln(&self) -> Option<Decimal>

Computes the natural logarithm of self, returning None if self is negative or self == 0.

source

pub fn exp(&self) -> Option<Decimal>

Computes the nature exponential of self, returning None if the result overflowed.

Trait Implementations§

source§

impl Add<&Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for f32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for f64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for i128

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for i16

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for i32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for i64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for i8

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for isize

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for u128

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for u16

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for u32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for u64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for u8

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Decimal> for usize

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: &Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for f32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for f64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for i128

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for i16

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for i32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for i64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for i8

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for isize

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for u128

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for u16

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for u32

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for u64

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for u8

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Decimal> for usize

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: f32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f32> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: f32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f64> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: f64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f64> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: f64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i128> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i128> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<isize> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: isize) -> Self::Output

Performs the + operation. Read more
source§

impl Add<isize> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: isize) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u128> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u128> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u128) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<usize> for &Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: usize) -> Self::Output

Performs the + operation. Read more
source§

impl Add<usize> for Decimal

§

type Output = Decimal

The resulting type after applying the + operator.
source§

fn add(self, other: usize) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<&Decimal> for &mut Decimal

source§

fn add_assign(&mut self, other: &Decimal)

Performs the += operation. Read more
source§

impl AddAssign<&Decimal> for Decimal

source§

fn add_assign(&mut self, other: &Decimal)

Performs the += operation. Read more
source§

impl AddAssign<Decimal> for &mut Decimal

source§

fn add_assign(&mut self, other: Decimal)

Performs the += operation. Read more
source§

impl AddAssign<Decimal> for Decimal

source§

fn add_assign(&mut self, other: Decimal)

Performs the += operation. Read more
source§

impl AddAssign<f32> for &mut Decimal

source§

fn add_assign(&mut self, other: f32)

Performs the += operation. Read more
source§

impl AddAssign<f32> for Decimal

source§

fn add_assign(&mut self, other: f32)

Performs the += operation. Read more
source§

impl AddAssign<f64> for &mut Decimal

source§

fn add_assign(&mut self, other: f64)

Performs the += operation. Read more
source§

impl AddAssign<f64> for Decimal

source§

fn add_assign(&mut self, other: f64)

Performs the += operation. Read more
source§

impl AddAssign<i128> for &mut Decimal

source§

fn add_assign(&mut self, other: i128)

Performs the += operation. Read more
source§

impl AddAssign<i128> for Decimal

source§

fn add_assign(&mut self, other: i128)

Performs the += operation. Read more
source§

impl AddAssign<i16> for &mut Decimal

source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
source§

impl AddAssign<i16> for Decimal

source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for &mut Decimal

source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
source§

impl AddAssign<i32> for Decimal

source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for &mut Decimal

source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
source§

impl AddAssign<i64> for Decimal

source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for &mut Decimal

source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
source§

impl AddAssign<i8> for Decimal

source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
source§

impl AddAssign<isize> for &mut Decimal

source§

fn add_assign(&mut self, other: isize)

Performs the += operation. Read more
source§

impl AddAssign<isize> for Decimal

source§

fn add_assign(&mut self, other: isize)

Performs the += operation. Read more
source§

impl AddAssign<u128> for &mut Decimal

source§

fn add_assign(&mut self, other: u128)

Performs the += operation. Read more
source§

impl AddAssign<u128> for Decimal

source§

fn add_assign(&mut self, other: u128)

Performs the += operation. Read more
source§

impl AddAssign<u16> for &mut Decimal

source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
source§

impl AddAssign<u16> for Decimal

source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for &mut Decimal

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl AddAssign<u32> for Decimal

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for &mut Decimal

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl AddAssign<u64> for Decimal

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for &mut Decimal

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
source§

impl AddAssign<u8> for Decimal

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
source§

impl AddAssign<usize> for &mut Decimal

source§

fn add_assign(&mut self, other: usize)

Performs the += operation. Read more
source§

impl AddAssign<usize> for Decimal

source§

fn add_assign(&mut self, other: usize)

Performs the += operation. Read more
source§

impl AsRef<Decimal> for Decimal

source§

fn as_ref(&self) -> &Decimal

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for Decimal

source§

fn clone(&self) -> Decimal

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Decimal

source§

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

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

impl Default for Decimal

source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Decimal

Available on crate feature serde only.
source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Decimal

source§

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

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

impl Div<&Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<&Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for f32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for f64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for i128

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for i16

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for i32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for i64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for i8

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for isize

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for u128

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for u16

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for u32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for u64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for u8

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&Decimal> for usize

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: &Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Self) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for f32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for f64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for i128

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for i16

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for i32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for i64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for i8

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for isize

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for u128

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for u16

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for u32

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for u64

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for u8

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<Decimal> for usize

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: f32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: f32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f64> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: f64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f64> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: f64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i128> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i128> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<isize> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: isize) -> Self::Output

Performs the / operation. Read more
source§

impl Div<isize> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: isize) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u128> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u128> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u128) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<usize> for &Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: usize) -> Self::Output

Performs the / operation. Read more
source§

impl Div<usize> for Decimal

§

type Output = Decimal

The resulting type after applying the / operator.
source§

fn div(self, other: usize) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<&Decimal> for &mut Decimal

source§

fn div_assign(&mut self, other: &Decimal)

Performs the /= operation. Read more
source§

impl DivAssign<&Decimal> for Decimal

source§

fn div_assign(&mut self, other: &Decimal)

Performs the /= operation. Read more
source§

impl DivAssign<Decimal> for &mut Decimal

source§

fn div_assign(&mut self, other: Decimal)

Performs the /= operation. Read more
source§

impl DivAssign<Decimal> for Decimal

source§

fn div_assign(&mut self, other: Decimal)

Performs the /= operation. Read more
source§

impl DivAssign<f32> for &mut Decimal

source§

fn div_assign(&mut self, other: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f32> for Decimal

source§

fn div_assign(&mut self, other: f32)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for &mut Decimal

source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
source§

impl DivAssign<f64> for Decimal

source§

fn div_assign(&mut self, other: f64)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for &mut Decimal

source§

fn div_assign(&mut self, other: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for Decimal

source§

fn div_assign(&mut self, other: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for &mut Decimal

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for Decimal

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for &mut Decimal

source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for Decimal

source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for &mut Decimal

source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for Decimal

source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for &mut Decimal

source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for Decimal

source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
source§

impl DivAssign<isize> for &mut Decimal

source§

fn div_assign(&mut self, other: isize)

Performs the /= operation. Read more
source§

impl DivAssign<isize> for Decimal

source§

fn div_assign(&mut self, other: isize)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for &mut Decimal

source§

fn div_assign(&mut self, other: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for Decimal

source§

fn div_assign(&mut self, other: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for &mut Decimal

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for Decimal

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for &mut Decimal

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for Decimal

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for &mut Decimal

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for Decimal

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for &mut Decimal

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for Decimal

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for &mut Decimal

source§

fn div_assign(&mut self, other: usize)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for Decimal

source§

fn div_assign(&mut self, other: usize)

Performs the /= operation. Read more
source§

impl From<&Decimal> for f32

source§

fn from(val: &Decimal) -> Self

Converts to this type from the input type.
source§

impl From<&Decimal> for f64

source§

fn from(val: &Decimal) -> Self

Converts to this type from the input type.
source§

impl From<Decimal> for f32

source§

fn from(val: Decimal) -> Self

Converts to this type from the input type.
source§

impl From<Decimal> for f64

source§

fn from(val: Decimal) -> Self

Converts to this type from the input type.
source§

impl From<bool> for Decimal

source§

fn from(b: bool) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Decimal

source§

fn from(val: i16) -> Decimal

Converts to this type from the input type.
source§

impl From<i32> for Decimal

source§

fn from(val: i32) -> Decimal

Converts to this type from the input type.
source§

impl From<i64> for Decimal

source§

fn from(val: i64) -> Decimal

Converts to this type from the input type.
source§

impl From<i8> for Decimal

source§

fn from(val: i8) -> Decimal

Converts to this type from the input type.
source§

impl From<isize> for Decimal

source§

fn from(val: isize) -> Decimal

Converts to this type from the input type.
source§

impl From<u16> for Decimal

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Decimal

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Decimal

source§

fn from(val: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Decimal

source§

fn from(val: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Decimal

source§

fn from(val: usize) -> Self

Converts to this type from the input type.
source§

impl FromStr for Decimal

§

type Err = DecimalParseError

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

fn from_str(s: &str) -> Result<Self, Self::Err>

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

impl Hash for Decimal

source§

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

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

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

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

impl Mul<&Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Decimal

Performs the * operation. Read more
source§

impl Mul<&Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for f32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for f64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for i128

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for i16

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for i32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for i64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for i8

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for isize

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for u128

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for u16

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for u32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for u64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for u8

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Decimal> for usize

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: &Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for f32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for f64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for i128

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for i16

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for i32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for i64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for i8

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for isize

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for u128

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for u16

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for u32

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for u64

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for u8

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Decimal> for usize

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: f32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: f32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f64> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: f64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f64> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: f64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i128> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i128> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<isize> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: isize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<isize> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: isize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u128> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u128> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u128) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<usize> for &Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: usize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<usize> for Decimal

§

type Output = Decimal

The resulting type after applying the * operator.
source§

fn mul(self, other: usize) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<&Decimal> for &mut Decimal

source§

fn mul_assign(&mut self, other: &Decimal)

Performs the *= operation. Read more
source§

impl MulAssign<&Decimal> for Decimal

source§

fn mul_assign(&mut self, other: &Decimal)

Performs the *= operation. Read more
source§

impl MulAssign<Decimal> for &mut Decimal

source§

fn mul_assign(&mut self, other: Decimal)

Performs the *= operation. Read more
source§

impl MulAssign<Decimal> for Decimal

source§

fn mul_assign(&mut self, other: Decimal)

Performs the *= operation. Read more
source§

impl MulAssign<f32> for &mut Decimal

source§

fn mul_assign(&mut self, other: f32)

Performs the *= operation. Read more
source§

impl MulAssign<f32> for Decimal

source§

fn mul_assign(&mut self, other: f32)

Performs the *= operation. Read more
source§

impl MulAssign<f64> for &mut Decimal

source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
source§

impl MulAssign<f64> for Decimal

source§

fn mul_assign(&mut self, other: f64)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for &mut Decimal

source§

fn mul_assign(&mut self, other: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for Decimal

source§

fn mul_assign(&mut self, other: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for &mut Decimal

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for Decimal

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for &mut Decimal

source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for Decimal

source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for &mut Decimal

source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for Decimal

source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for &mut Decimal

source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for Decimal

source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
source§

impl MulAssign<isize> for &mut Decimal

source§

fn mul_assign(&mut self, other: isize)

Performs the *= operation. Read more
source§

impl MulAssign<isize> for Decimal

source§

fn mul_assign(&mut self, other: isize)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for &mut Decimal

source§

fn mul_assign(&mut self, other: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for Decimal

source§

fn mul_assign(&mut self, other: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for &mut Decimal

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for Decimal

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for &mut Decimal

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for Decimal

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for &mut Decimal

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for Decimal

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for &mut Decimal

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for Decimal

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for &mut Decimal

source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for Decimal

source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
source§

impl Neg for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for Decimal

source§

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

This method returns an Ordering between self and other. Read more
1.21.0 · source§

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

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

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

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

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

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

impl PartialEq<&Decimal> for Decimal

source§

fn eq(&self, other: &&Decimal) -> bool

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

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

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

impl PartialEq<Decimal> for &Decimal

source§

fn eq(&self, other: &Decimal) -> bool

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

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

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

impl PartialEq<Decimal> for Decimal

source§

fn eq(&self, other: &Self) -> bool

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

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

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

impl PartialOrd<&Decimal> for Decimal

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Decimal> for &Decimal

source§

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

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

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

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

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

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

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

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

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

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

impl PartialOrd<Decimal> for Decimal

source§

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

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

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

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

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

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

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

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

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

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

impl<'a> Product<&'a Decimal> for Decimal

source§

fn product<I: Iterator<Item = &'a Decimal>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Product<Decimal> for Decimal

source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Rem<&Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

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

Performs the % operation. Read more
source§

impl Rem<&Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for f32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for f64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for i128

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for i16

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for i32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for i64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for i8

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for isize

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for u128

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for u16

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for u32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for u64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for u8

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<&Decimal> for usize

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: &Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Self) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for f32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for f64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for i128

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for i16

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for i32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for i64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for i8

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for isize

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for u128

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for u16

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for u32

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for u64

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for u8

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<Decimal> for usize

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: Decimal) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f32> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: f32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f32> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: f32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f64> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: f64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<f64> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: f64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i128> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i128> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i32> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i64> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i64> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i8> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i8> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: i8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<isize> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: isize) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<isize> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: isize) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u128> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u128> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u128) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u16> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u16> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u32> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u32> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u32) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u64> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u64> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u64) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u8> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<u8> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: u8) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<usize> for &Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: usize) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<usize> for Decimal

§

type Output = Decimal

The resulting type after applying the % operator.
source§

fn rem(self, other: usize) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<&Decimal> for &mut Decimal

source§

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

Performs the %= operation. Read more
source§

impl RemAssign<&Decimal> for Decimal

source§

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

Performs the %= operation. Read more
source§

impl RemAssign<Decimal> for &mut Decimal

source§

fn rem_assign(&mut self, other: Decimal)

Performs the %= operation. Read more
source§

impl RemAssign<Decimal> for Decimal

source§

fn rem_assign(&mut self, other: Decimal)

Performs the %= operation. Read more
source§

impl RemAssign<f32> for &mut Decimal

source§

fn rem_assign(&mut self, other: f32)

Performs the %= operation. Read more
source§

impl RemAssign<f32> for Decimal

source§

fn rem_assign(&mut self, other: f32)

Performs the %= operation. Read more
source§

impl RemAssign<f64> for &mut Decimal

source§

fn rem_assign(&mut self, other: f64)

Performs the %= operation. Read more
source§

impl RemAssign<f64> for Decimal

source§

fn rem_assign(&mut self, other: f64)

Performs the %= operation. Read more
source§

impl RemAssign<i128> for &mut Decimal

source§

fn rem_assign(&mut self, other: i128)

Performs the %= operation. Read more
source§

impl RemAssign<i128> for Decimal

source§

fn rem_assign(&mut self, other: i128)

Performs the %= operation. Read more
source§

impl RemAssign<i16> for &mut Decimal

source§

fn rem_assign(&mut self, other: i16)

Performs the %= operation. Read more
source§

impl RemAssign<i16> for Decimal

source§

fn rem_assign(&mut self, other: i16)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for &mut Decimal

source§

fn rem_assign(&mut self, other: i32)

Performs the %= operation. Read more
source§

impl RemAssign<i32> for Decimal

source§

fn rem_assign(&mut self, other: i32)

Performs the %= operation. Read more
source§

impl RemAssign<i64> for &mut Decimal

source§

fn rem_assign(&mut self, other: i64)

Performs the %= operation. Read more
source§

impl RemAssign<i64> for Decimal

source§

fn rem_assign(&mut self, other: i64)

Performs the %= operation. Read more
source§

impl RemAssign<i8> for &mut Decimal

source§

fn rem_assign(&mut self, other: i8)

Performs the %= operation. Read more
source§

impl RemAssign<i8> for Decimal

source§

fn rem_assign(&mut self, other: i8)

Performs the %= operation. Read more
source§

impl RemAssign<isize> for &mut Decimal

source§

fn rem_assign(&mut self, other: isize)

Performs the %= operation. Read more
source§

impl RemAssign<isize> for Decimal

source§

fn rem_assign(&mut self, other: isize)

Performs the %= operation. Read more
source§

impl RemAssign<u128> for &mut Decimal

source§

fn rem_assign(&mut self, other: u128)

Performs the %= operation. Read more
source§

impl RemAssign<u128> for Decimal

source§

fn rem_assign(&mut self, other: u128)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for &mut Decimal

source§

fn rem_assign(&mut self, other: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u16> for Decimal

source§

fn rem_assign(&mut self, other: u16)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for &mut Decimal

source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u32> for Decimal

source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for &mut Decimal

source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u64> for Decimal

source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for &mut Decimal

source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
source§

impl RemAssign<u8> for Decimal

source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
source§

impl RemAssign<usize> for &mut Decimal

source§

fn rem_assign(&mut self, other: usize)

Performs the %= operation. Read more
source§

impl RemAssign<usize> for Decimal

source§

fn rem_assign(&mut self, other: usize)

Performs the %= operation. Read more
source§

impl Serialize for Decimal

Available on crate feature serde only.
source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Sub<&Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Decimal

Performs the - operation. Read more
source§

impl Sub<&Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for f32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for f64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for i128

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for i16

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for i32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for i64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for i8

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for isize

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for u128

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for u16

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for u32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for u64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for u8

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Decimal> for usize

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: &Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for f32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for f64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for i128

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for i16

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for i32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for i64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for i8

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for isize

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for u128

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for u16

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for u32

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for u64

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for u8

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Decimal> for usize

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: f32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f32> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: f32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f64> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: f64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f64> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: f64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i128> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i128> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<isize> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: isize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<isize> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: isize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u128> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u128> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u128) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<usize> for &Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: usize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<usize> for Decimal

§

type Output = Decimal

The resulting type after applying the - operator.
source§

fn sub(self, other: usize) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<&Decimal> for &mut Decimal

source§

fn sub_assign(&mut self, other: &Decimal)

Performs the -= operation. Read more
source§

impl SubAssign<&Decimal> for Decimal

source§

fn sub_assign(&mut self, other: &Decimal)

Performs the -= operation. Read more
source§

impl SubAssign<Decimal> for &mut Decimal

source§

fn sub_assign(&mut self, other: Decimal)

Performs the -= operation. Read more
source§

impl SubAssign<Decimal> for Decimal

source§

fn sub_assign(&mut self, other: Decimal)

Performs the -= operation. Read more
source§

impl SubAssign<f32> for &mut Decimal

source§

fn sub_assign(&mut self, other: f32)

Performs the -= operation. Read more
source§

impl SubAssign<f32> for Decimal

source§

fn sub_assign(&mut self, other: f32)

Performs the -= operation. Read more
source§

impl SubAssign<f64> for &mut Decimal

source§

fn sub_assign(&mut self, other: f64)

Performs the -= operation. Read more
source§

impl SubAssign<f64> for Decimal

source§

fn sub_assign(&mut self, other: f64)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for &mut Decimal

source§

fn sub_assign(&mut self, other: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for Decimal

source§

fn sub_assign(&mut self, other: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for &mut Decimal

source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for Decimal

source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for &mut Decimal

source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for Decimal

source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for &mut Decimal

source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for Decimal

source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for &mut Decimal

source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for Decimal

source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
source§

impl SubAssign<isize> for &mut Decimal

source§

fn sub_assign(&mut self, other: isize)

Performs the -= operation. Read more
source§

impl SubAssign<isize> for Decimal

source§

fn sub_assign(&mut self, other: isize)

Performs the -= operation. Read more
source§

impl SubAssign<u128> for &mut Decimal

source§

fn sub_assign(&mut self, other: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u128> for Decimal

source§

fn sub_assign(&mut self, other: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for &mut Decimal

source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for Decimal

source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for &mut Decimal

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for Decimal

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for &mut Decimal

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for Decimal

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for &mut Decimal

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for Decimal

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
source§

impl SubAssign<usize> for &mut Decimal

source§

fn sub_assign(&mut self, other: usize)

Performs the -= operation. Read more
source§

impl SubAssign<usize> for Decimal

source§

fn sub_assign(&mut self, other: usize)

Performs the -= operation. Read more
source§

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

source§

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

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

impl Sum<Decimal> for Decimal

source§

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

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

impl TryFrom<&Decimal> for i128

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for i16

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for i32

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for i64

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for i8

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for isize

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for u128

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<u128, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for u16

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for u32

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for u64

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for u8

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Decimal> for usize

§

type Error = DecimalConvertError

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

fn try_from(value: &Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for i128

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for i16

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for i32

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for i64

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for i8

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for isize

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for u128

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for u16

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for u32

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for u64

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for u8

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Decimal> for usize

§

type Error = DecimalConvertError

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

fn try_from(value: Decimal) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<f32> for Decimal

§

type Error = DecimalConvertError

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

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

Performs the conversion.
source§

impl TryFrom<f64> for Decimal

§

type Error = DecimalConvertError

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

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

Performs the conversion.
source§

impl TryFrom<i128> for Decimal

§

type Error = DecimalConvertError

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

fn try_from(val: i128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<u128> for Decimal

§

type Error = DecimalConvertError

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

fn try_from(value: u128) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Decimal

source§

impl Eq for Decimal

source§

impl StructuralEq for Decimal

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

default fn to_string(&self) -> String

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

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,