Struct decimal_rs::Decimal[][src]

pub struct Decimal { /* fields omitted */ }

High precision decimal.

Implementations

impl Decimal[src]

pub const ZERO: Decimal[src]

Zero value, i.e. 0.

pub const ONE: Decimal[src]

i.e. 1.

pub fn precision(&self) -> u8[src]

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

pub const fn scale(&self) -> i16[src]

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

pub const fn is_sign_negative(&self) -> bool[src]

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

pub const fn is_sign_positive(&self) -> bool[src]

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

pub const fn is_zero(&self) -> bool[src]

Checks if self is zero.

pub fn abs(&self) -> Decimal[src]

Computes the absolute value of self.

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

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

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

Decodes a Decimal from binary bytes.

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

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

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

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

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

Do bounds checking and rounding according to precision and scale.

Returns true if overflows.

pub fn normalize(&self) -> Decimal[src]

Normalize a Decimal's scale toward zero.

pub fn checked_add(&self, other: Decimal) -> Option<Decimal>[src]

Add two decimals, returning None if overflow occurred.

pub fn checked_sub(&self, other: Decimal) -> Option<Decimal>[src]

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

pub fn checked_mul(&self, other: Decimal) -> Option<Decimal>[src]

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

pub fn checked_div(&self, other: Decimal) -> Option<Decimal>[src]

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

pub fn checked_rem(&self, other: Decimal) -> Option<Decimal>[src]

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

Trait Implementations

impl Add<&'_ Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<&'_ Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<f32> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<f32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<f64> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<f64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i128> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i16> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i32> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i64> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i8> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<i8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<isize> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<isize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u128> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u16> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u32> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u64> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u8> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<u8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<usize> for Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl Add<usize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the + operator.

impl AddAssign<&'_ Decimal> for Decimal[src]

impl AddAssign<&'_ Decimal> for &mut Decimal[src]

impl AddAssign<Decimal> for Decimal[src]

impl AddAssign<Decimal> for &mut Decimal[src]

impl AddAssign<f32> for Decimal[src]

impl AddAssign<f32> for &mut Decimal[src]

impl AddAssign<f64> for Decimal[src]

impl AddAssign<f64> for &mut Decimal[src]

impl AddAssign<i128> for Decimal[src]

impl AddAssign<i128> for &mut Decimal[src]

impl AddAssign<i16> for Decimal[src]

impl AddAssign<i16> for &mut Decimal[src]

impl AddAssign<i32> for Decimal[src]

impl AddAssign<i32> for &mut Decimal[src]

impl AddAssign<i64> for Decimal[src]

impl AddAssign<i64> for &mut Decimal[src]

impl AddAssign<i8> for Decimal[src]

impl AddAssign<i8> for &mut Decimal[src]

impl AddAssign<isize> for Decimal[src]

impl AddAssign<isize> for &mut Decimal[src]

impl AddAssign<u128> for Decimal[src]

impl AddAssign<u128> for &mut Decimal[src]

impl AddAssign<u16> for Decimal[src]

impl AddAssign<u16> for &mut Decimal[src]

impl AddAssign<u32> for Decimal[src]

impl AddAssign<u32> for &mut Decimal[src]

impl AddAssign<u64> for Decimal[src]

impl AddAssign<u64> for &mut Decimal[src]

impl AddAssign<u8> for Decimal[src]

impl AddAssign<u8> for &mut Decimal[src]

impl AddAssign<usize> for Decimal[src]

impl AddAssign<usize> for &mut Decimal[src]

impl Clone for Decimal[src]

impl Copy for Decimal[src]

impl Debug for Decimal[src]

impl Default for Decimal[src]

impl Display for Decimal[src]

impl Div<&'_ Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<&'_ Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<f32> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<f32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<f64> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<f64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i128> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i16> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i32> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i64> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i8> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<i8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<isize> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<isize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u128> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u16> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u32> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u64> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u8> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<u8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<usize> for Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl Div<usize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the / operator.

impl DivAssign<&'_ Decimal> for Decimal[src]

impl DivAssign<&'_ Decimal> for &mut Decimal[src]

impl DivAssign<Decimal> for Decimal[src]

impl DivAssign<Decimal> for &mut Decimal[src]

impl DivAssign<f32> for Decimal[src]

impl DivAssign<f32> for &mut Decimal[src]

impl DivAssign<f64> for Decimal[src]

impl DivAssign<f64> for &mut Decimal[src]

impl DivAssign<i128> for Decimal[src]

impl DivAssign<i128> for &mut Decimal[src]

impl DivAssign<i16> for Decimal[src]

impl DivAssign<i16> for &mut Decimal[src]

impl DivAssign<i32> for Decimal[src]

impl DivAssign<i32> for &mut Decimal[src]

impl DivAssign<i64> for Decimal[src]

impl DivAssign<i64> for &mut Decimal[src]

impl DivAssign<i8> for Decimal[src]

impl DivAssign<i8> for &mut Decimal[src]

impl DivAssign<isize> for Decimal[src]

impl DivAssign<isize> for &mut Decimal[src]

impl DivAssign<u128> for Decimal[src]

impl DivAssign<u128> for &mut Decimal[src]

impl DivAssign<u16> for Decimal[src]

impl DivAssign<u16> for &mut Decimal[src]

impl DivAssign<u32> for Decimal[src]

impl DivAssign<u32> for &mut Decimal[src]

impl DivAssign<u64> for Decimal[src]

impl DivAssign<u64> for &mut Decimal[src]

impl DivAssign<u8> for Decimal[src]

impl DivAssign<u8> for &mut Decimal[src]

impl DivAssign<usize> for Decimal[src]

impl DivAssign<usize> for &mut Decimal[src]

impl Eq for Decimal[src]

impl From<bool> for Decimal[src]

impl From<i16> for Decimal[src]

impl From<i32> for Decimal[src]

impl From<i64> for Decimal[src]

impl From<i8> for Decimal[src]

impl From<isize> for Decimal[src]

impl From<u16> for Decimal[src]

impl From<u32> for Decimal[src]

impl From<u64> for Decimal[src]

impl From<u8> for Decimal[src]

impl From<usize> for Decimal[src]

impl FromStr for Decimal[src]

type Err = DecimalParseError

The associated error which can be returned from parsing.

impl Hash for Decimal[src]

impl Mul<&'_ Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<&'_ Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<f32> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<f32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<f64> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<f64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i128> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i16> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i32> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i64> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i8> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<i8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<isize> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<isize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u128> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u16> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u32> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u64> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u8> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<u8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<usize> for Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl Mul<usize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the * operator.

impl MulAssign<&'_ Decimal> for Decimal[src]

impl MulAssign<&'_ Decimal> for &mut Decimal[src]

impl MulAssign<Decimal> for Decimal[src]

impl MulAssign<Decimal> for &mut Decimal[src]

impl MulAssign<f32> for Decimal[src]

impl MulAssign<f32> for &mut Decimal[src]

impl MulAssign<f64> for Decimal[src]

impl MulAssign<f64> for &mut Decimal[src]

impl MulAssign<i128> for Decimal[src]

impl MulAssign<i128> for &mut Decimal[src]

impl MulAssign<i16> for Decimal[src]

impl MulAssign<i16> for &mut Decimal[src]

impl MulAssign<i32> for Decimal[src]

impl MulAssign<i32> for &mut Decimal[src]

impl MulAssign<i64> for Decimal[src]

impl MulAssign<i64> for &mut Decimal[src]

impl MulAssign<i8> for Decimal[src]

impl MulAssign<i8> for &mut Decimal[src]

impl MulAssign<isize> for Decimal[src]

impl MulAssign<isize> for &mut Decimal[src]

impl MulAssign<u128> for Decimal[src]

impl MulAssign<u128> for &mut Decimal[src]

impl MulAssign<u16> for Decimal[src]

impl MulAssign<u16> for &mut Decimal[src]

impl MulAssign<u32> for Decimal[src]

impl MulAssign<u32> for &mut Decimal[src]

impl MulAssign<u64> for Decimal[src]

impl MulAssign<u64> for &mut Decimal[src]

impl MulAssign<u8> for Decimal[src]

impl MulAssign<u8> for &mut Decimal[src]

impl MulAssign<usize> for Decimal[src]

impl MulAssign<usize> for &mut Decimal[src]

impl Neg for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Neg for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Ord for Decimal[src]

impl PartialEq<&'_ Decimal> for Decimal[src]

impl PartialEq<Decimal> for Decimal[src]

impl PartialEq<Decimal> for &Decimal[src]

impl PartialOrd<&'_ Decimal> for Decimal[src]

impl PartialOrd<Decimal> for Decimal[src]

impl PartialOrd<Decimal> for &Decimal[src]

impl Rem<&'_ Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<&'_ Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<f32> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<f32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<f64> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<f64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i128> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i16> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i32> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i64> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i8> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<i8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<isize> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<isize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u128> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u16> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u32> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u64> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u8> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<u8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<usize> for Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl Rem<usize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the % operator.

impl RemAssign<&'_ Decimal> for Decimal[src]

impl RemAssign<&'_ Decimal> for &mut Decimal[src]

impl RemAssign<Decimal> for Decimal[src]

impl RemAssign<Decimal> for &mut Decimal[src]

impl RemAssign<f32> for Decimal[src]

impl RemAssign<f32> for &mut Decimal[src]

impl RemAssign<f64> for Decimal[src]

impl RemAssign<f64> for &mut Decimal[src]

impl RemAssign<i128> for Decimal[src]

impl RemAssign<i128> for &mut Decimal[src]

impl RemAssign<i16> for Decimal[src]

impl RemAssign<i16> for &mut Decimal[src]

impl RemAssign<i32> for Decimal[src]

impl RemAssign<i32> for &mut Decimal[src]

impl RemAssign<i64> for Decimal[src]

impl RemAssign<i64> for &mut Decimal[src]

impl RemAssign<i8> for Decimal[src]

impl RemAssign<i8> for &mut Decimal[src]

impl RemAssign<isize> for Decimal[src]

impl RemAssign<isize> for &mut Decimal[src]

impl RemAssign<u128> for Decimal[src]

impl RemAssign<u128> for &mut Decimal[src]

impl RemAssign<u16> for Decimal[src]

impl RemAssign<u16> for &mut Decimal[src]

impl RemAssign<u32> for Decimal[src]

impl RemAssign<u32> for &mut Decimal[src]

impl RemAssign<u64> for Decimal[src]

impl RemAssign<u64> for &mut Decimal[src]

impl RemAssign<u8> for Decimal[src]

impl RemAssign<u8> for &mut Decimal[src]

impl RemAssign<usize> for Decimal[src]

impl RemAssign<usize> for &mut Decimal[src]

impl StructuralEq for Decimal[src]

impl Sub<&'_ Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<&'_ Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<Decimal> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<Decimal> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<f32> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<f32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<f64> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<f64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i128> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i16> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i32> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i64> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i8> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<i8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<isize> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<isize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u128> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u128> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u16> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u16> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u32> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u32> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u64> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u64> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u8> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<u8> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<usize> for Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl Sub<usize> for &Decimal[src]

type Output = Decimal

The resulting type after applying the - operator.

impl SubAssign<&'_ Decimal> for Decimal[src]

impl SubAssign<&'_ Decimal> for &mut Decimal[src]

impl SubAssign<Decimal> for Decimal[src]

impl SubAssign<Decimal> for &mut Decimal[src]

impl SubAssign<f32> for Decimal[src]

impl SubAssign<f32> for &mut Decimal[src]

impl SubAssign<f64> for Decimal[src]

impl SubAssign<f64> for &mut Decimal[src]

impl SubAssign<i128> for Decimal[src]

impl SubAssign<i128> for &mut Decimal[src]

impl SubAssign<i16> for Decimal[src]

impl SubAssign<i16> for &mut Decimal[src]

impl SubAssign<i32> for Decimal[src]

impl SubAssign<i32> for &mut Decimal[src]

impl SubAssign<i64> for Decimal[src]

impl SubAssign<i64> for &mut Decimal[src]

impl SubAssign<i8> for Decimal[src]

impl SubAssign<i8> for &mut Decimal[src]

impl SubAssign<isize> for Decimal[src]

impl SubAssign<isize> for &mut Decimal[src]

impl SubAssign<u128> for Decimal[src]

impl SubAssign<u128> for &mut Decimal[src]

impl SubAssign<u16> for Decimal[src]

impl SubAssign<u16> for &mut Decimal[src]

impl SubAssign<u32> for Decimal[src]

impl SubAssign<u32> for &mut Decimal[src]

impl SubAssign<u64> for Decimal[src]

impl SubAssign<u64> for &mut Decimal[src]

impl SubAssign<u8> for Decimal[src]

impl SubAssign<u8> for &mut Decimal[src]

impl SubAssign<usize> for Decimal[src]

impl SubAssign<usize> for &mut Decimal[src]

impl TryFrom<f32> for Decimal[src]

type Error = DecimalConvertError

The type returned in the event of a conversion error.

impl TryFrom<f64> for Decimal[src]

type Error = DecimalConvertError

The type returned in the event of a conversion error.

impl TryFrom<i128> for Decimal[src]

type Error = DecimalConvertError

The type returned in the event of a conversion error.

impl TryFrom<u128> for Decimal[src]

type Error = DecimalConvertError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.