Struct Decimal

Source
pub struct Decimal { /* private fields */ }
Expand description

Represents a decimal number as a coefficient (i128) combined with a value (u8) specifying the number of fractional decimal digits.

The number of fractional digits can be in the range 0 .. MAX_N_FRAC_DIGITS.

Implementations§

Source§

impl Decimal

Source

pub const fn eq_zero(&self) -> bool

Returns true if self is equal to zero.

Source

pub const fn eq_one(&self) -> bool

Returns true if self is equal to one.

Source

pub const fn is_negative(&self) -> bool

Returns true if self is less than zero.

Source

pub const fn is_positive(&self) -> bool

Returns true if self is greater than zero.

Source§

impl Decimal

Source

pub const fn abs(&self) -> Self

Returns the absolute value of self.

Source

pub fn floor(&self) -> Self

Returns the largest integral value <= self.

§Examples
let d = Dec!(17.5);
assert_eq!(d.floor().to_string(), "17");
let d = Dec!(-17.050);
assert_eq!(d.floor().to_string(), "-18");
Source

pub fn ceil(&self) -> Self

Returns the smallest integral value >= self.

§Examples
let d = Dec!(17.5);
assert_eq!(d.ceil().to_string(), "18");
let d = Dec!(-17.50);
assert_eq!(d.ceil().to_string(), "-17");
Source

pub const fn trunc(&self) -> Self

Returns the integral part of self.

§Examples
let d = Dec!(17.5);
assert_eq!(d.trunc().to_string(), "17");
let d = Dec!(-17.55555);
assert_eq!(d.trunc().to_string(), "-17");
Source

pub const fn fract(&self) -> Self

Returns the fractional part of self.

§Examples
let d = Dec!(17.050);
assert_eq!(d.fract().to_string(), "0.050");
let d = Dec!(-17.5);
assert_eq!(d.fract().to_string(), "-0.5");
Source§

impl Decimal

Source

pub const ZERO: Self

Additive identity

Source

pub const ONE: Self

Multiplicative identity

Source

pub const NEG_ONE: Self

Multiplicative negator

Source

pub const TWO: Self

Equivalent of 2

Source

pub const TEN: Self

Equivalent of 10

Source

pub const MAX: Self

Maximum value representable by Decimal = 2¹²⁷ - 1

Source

pub const MIN: Self

Minimum value representable by Decimal = -2¹²⁷ + 1

Source

pub const DELTA: Self

Smallest absolute difference between two non-equal values of Decimal

Source

pub const fn coefficient(self) -> i128

Coefficient of self.

Source

pub const fn n_frac_digits(self) -> u8

Number of fractional decimal digits of self.

Source

pub const fn magnitude(self) -> i8

Returns the positional index of the most significant decimal digit of self.

Special case: for a value equal to 0 magnitude() returns 0.

§Examples:
let d = Dec!(123);
assert_eq!(d.magnitude(), 2);
let d = Dec!(0.00123);
assert_eq!(d.magnitude(), -3);
let d = Decimal::ZERO;
assert_eq!(d.magnitude(), 0);

Trait Implementations§

Source§

impl Add<&Decimal> for &Decimal

Source§

type Output = <Decimal as Add>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &i128
where i128: Add<Decimal>,

Source§

type Output = <i128 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &i16
where i16: Add<Decimal>,

Source§

type Output = <i16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &i32
where i32: Add<Decimal>,

Source§

type Output = <i32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &i64
where i64: Add<Decimal>,

Source§

type Output = <i64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &i8
where i8: Add<Decimal>,

Source§

type Output = <i8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &u16
where u16: Add<Decimal>,

Source§

type Output = <u16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &u32
where u32: Add<Decimal>,

Source§

type Output = <u32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &u64
where u64: Add<Decimal>,

Source§

type Output = <u64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for &u8
where u8: Add<Decimal>,

Source§

type Output = <u8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for Decimal

Source§

type Output = <Decimal as Add>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for i128
where i128: Add<Decimal>,

Source§

type Output = <i128 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for i16
where i16: Add<Decimal>,

Source§

type Output = <i16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for i32
where i32: Add<Decimal>,

Source§

type Output = <i32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for i64
where i64: Add<Decimal>,

Source§

type Output = <i64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for i8
where i8: Add<Decimal>,

Source§

type Output = <i8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for u16
where u16: Add<Decimal>,

Source§

type Output = <u16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for u32
where u32: Add<Decimal>,

Source§

type Output = <u32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for u64
where u64: Add<Decimal>,

Source§

type Output = <u64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&Decimal> for u8
where u8: Add<Decimal>,

Source§

type Output = <u8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i128> for &Decimal
where Decimal: Add<i128>,

Source§

type Output = <Decimal as Add<i128>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i128> for Decimal
where Decimal: Add<i128>,

Source§

type Output = <Decimal as Add<i128>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i16> for &Decimal
where Decimal: Add<i16>,

Source§

type Output = <Decimal as Add<i16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i16> for Decimal
where Decimal: Add<i16>,

Source§

type Output = <Decimal as Add<i16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i32> for &Decimal
where Decimal: Add<i32>,

Source§

type Output = <Decimal as Add<i32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i32> for Decimal
where Decimal: Add<i32>,

Source§

type Output = <Decimal as Add<i32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i64> for &Decimal
where Decimal: Add<i64>,

Source§

type Output = <Decimal as Add<i64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i64> for Decimal
where Decimal: Add<i64>,

Source§

type Output = <Decimal as Add<i64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i8> for &Decimal
where Decimal: Add<i8>,

Source§

type Output = <Decimal as Add<i8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&i8> for Decimal
where Decimal: Add<i8>,

Source§

type Output = <Decimal as Add<i8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u16> for &Decimal
where Decimal: Add<u16>,

Source§

type Output = <Decimal as Add<u16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u16> for Decimal
where Decimal: Add<u16>,

Source§

type Output = <Decimal as Add<u16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u32> for &Decimal
where Decimal: Add<u32>,

Source§

type Output = <Decimal as Add<u32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u32> for Decimal
where Decimal: Add<u32>,

Source§

type Output = <Decimal as Add<u32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u64> for &Decimal
where Decimal: Add<u64>,

Source§

type Output = <Decimal as Add<u64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u64> for Decimal
where Decimal: Add<u64>,

Source§

type Output = <Decimal as Add<u64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u8> for &Decimal
where Decimal: Add<u8>,

Source§

type Output = <Decimal as Add<u8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<&u8> for Decimal
where Decimal: Add<u8>,

Source§

type Output = <Decimal as Add<u8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = <Decimal as Add>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a i128
where i128: Add<Decimal>,

Source§

type Output = <i128 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a i16
where i16: Add<Decimal>,

Source§

type Output = <i16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a i32
where i32: Add<Decimal>,

Source§

type Output = <i32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a i64
where i64: Add<Decimal>,

Source§

type Output = <i64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a i8
where i8: Add<Decimal>,

Source§

type Output = <i8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a u16
where u16: Add<Decimal>,

Source§

type Output = <u16 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a u32
where u32: Add<Decimal>,

Source§

type Output = <u32 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a u64
where u64: Add<Decimal>,

Source§

type Output = <u64 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<Decimal> for &'a u8
where u8: Add<Decimal>,

Source§

type Output = <u8 as Add<Decimal>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<i128> for &'a Decimal
where Decimal: Add<i128>,

Source§

type Output = <Decimal as Add<i128>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<i16> for &'a Decimal
where Decimal: Add<i16>,

Source§

type Output = <Decimal as Add<i16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<i32> for &'a Decimal
where Decimal: Add<i32>,

Source§

type Output = <Decimal as Add<i32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<i64> for &'a Decimal
where Decimal: Add<i64>,

Source§

type Output = <Decimal as Add<i64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<i8> for &'a Decimal
where Decimal: Add<i8>,

Source§

type Output = <Decimal as Add<i8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<u16> for &'a Decimal
where Decimal: Add<u16>,

Source§

type Output = <Decimal as Add<u16>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<u32> for &'a Decimal
where Decimal: Add<u32>,

Source§

type Output = <Decimal as Add<u32>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<u64> for &'a Decimal
where Decimal: Add<u64>,

Source§

type Output = <Decimal as Add<u64>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'a> Add<u8> for &'a Decimal
where Decimal: Add<u8>,

Source§

type Output = <Decimal as Add<u8>>::Output

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for Decimal

Source§

type Output = Decimal

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<T> AddAssign<T> for Decimal
where Decimal: Add<T, Output = Self>,

Source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
Source§

impl AsIntegerRatio for Decimal

Source§

fn as_integer_ratio(self) -> (i128, i128)

Returns the pair of integers with the smallest positive denominator from those with a ratio equal to self.

§Examples
let d = Dec!(12345);
assert_eq!(d.as_integer_ratio(), (12345, 1));
let d = Dec!(28.27095);
assert_eq!(d.as_integer_ratio(), (565419, 20000));
Source§

fn numerator(self) -> i128

Returns the numerator from the pair of integers with the smallest positive denominator from those with a ratio equal to self.

§Examples
let d = Dec!(12345.0);
assert_eq!(d.numerator(), 12345);
let d = Dec!(28.27095);
assert_eq!(d.numerator(), 565419);
Source§

fn denominator(self) -> i128

Returns the smallest positive denominator from the pairs of integers with a ratio equal to self.

§Examples
let d = Dec!(12345.00);
assert_eq!(d.denominator(), 1);
let d = Dec!(28.27095);
assert_eq!(d.denominator(), 20000);
Source§

impl CheckedAdd<&Decimal> for &Decimal

Source§

type Output = <Decimal as CheckedAdd>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &i128

Source§

type Output = <i128 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &i16

Source§

type Output = <i16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &i32

Source§

type Output = <i32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &i64

Source§

type Output = <i64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &i8

Source§

type Output = <i8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &u16

Source§

type Output = <u16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &u32

Source§

type Output = <u32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &u64

Source§

type Output = <u64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for &u8

Source§

type Output = <u8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for Decimal

Source§

type Output = <Decimal as CheckedAdd>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for i128

Source§

type Output = <i128 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for i16

Source§

type Output = <i16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for i32

Source§

type Output = <i32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for i64

Source§

type Output = <i64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for i8

Source§

type Output = <i8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for u16

Source§

type Output = <u16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for u32

Source§

type Output = <u32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for u64

Source§

type Output = <u64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&Decimal> for u8

Source§

type Output = <u8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i128> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<i128>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i128) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i128> for Decimal

Source§

type Output = <Decimal as CheckedAdd<i128>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i128) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i16> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<i16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i16> for Decimal

Source§

type Output = <Decimal as CheckedAdd<i16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i32> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<i32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i32> for Decimal

Source§

type Output = <Decimal as CheckedAdd<i32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i64> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<i64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i64> for Decimal

Source§

type Output = <Decimal as CheckedAdd<i64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i8> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<i8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&i8> for Decimal

Source§

type Output = <Decimal as CheckedAdd<i8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &i8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u16> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<u16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u16> for Decimal

Source§

type Output = <Decimal as CheckedAdd<u16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u32> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<u32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u32> for Decimal

Source§

type Output = <Decimal as CheckedAdd<u32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u64> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<u64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u64> for Decimal

Source§

type Output = <Decimal as CheckedAdd<u64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u8> for &Decimal

Source§

type Output = <Decimal as CheckedAdd<u8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<&u8> for Decimal

Source§

type Output = <Decimal as CheckedAdd<u8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: &u8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

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

Source§

type Output = <Decimal as CheckedAdd>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a i128

Source§

type Output = <i128 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a i16

Source§

type Output = <i16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a i32

Source§

type Output = <i32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a i64

Source§

type Output = <i64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a i8

Source§

type Output = <i8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a u16

Source§

type Output = <u16 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a u32

Source§

type Output = <u32 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a u64

Source§

type Output = <u64 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<Decimal> for &'a u8

Source§

type Output = <u8 as CheckedAdd<Decimal>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for i128

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for i16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for i32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for i64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for i8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for u16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for u32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for u64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<Decimal> for u8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Decimal) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<i128> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<i128>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i128) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<i128> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i128) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<i16> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<i16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<i16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<i32> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<i32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<i32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<i64> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<i64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<i64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<i8> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<i8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<i8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: i8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<u16> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<u16>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<u16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u16) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<u32> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<u32>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<u32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u32) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<u64> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<u64>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<u64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u64) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedAdd<u8> for &'a Decimal

Source§

type Output = <Decimal as CheckedAdd<u8>>::Output

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd<u8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: u8) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedAdd for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_add.
Source§

fn checked_add(self, rhs: Self) -> Self::Output

Returns Some(self + rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &Decimal

Source§

type Output = <Decimal as CheckedDiv>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &i128

Source§

type Output = <i128 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &i16

Source§

type Output = <i16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &i32

Source§

type Output = <i32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &i64

Source§

type Output = <i64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &i8

Source§

type Output = <i8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &u16

Source§

type Output = <u16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &u32

Source§

type Output = <u32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &u64

Source§

type Output = <u64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for &u8

Source§

type Output = <u8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for Decimal

Source§

type Output = <Decimal as CheckedDiv>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for i128

Source§

type Output = <i128 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for i16

Source§

type Output = <i16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for i32

Source§

type Output = <i32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for i64

Source§

type Output = <i64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for i8

Source§

type Output = <i8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for u16

Source§

type Output = <u16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for u32

Source§

type Output = <u32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for u64

Source§

type Output = <u64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&Decimal> for u8

Source§

type Output = <u8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i128> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<i128>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i128) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i128> for Decimal

Source§

type Output = <Decimal as CheckedDiv<i128>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i128) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i16> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<i16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i16> for Decimal

Source§

type Output = <Decimal as CheckedDiv<i16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i32> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<i32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i32> for Decimal

Source§

type Output = <Decimal as CheckedDiv<i32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i64> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<i64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i64> for Decimal

Source§

type Output = <Decimal as CheckedDiv<i64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i8> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<i8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&i8> for Decimal

Source§

type Output = <Decimal as CheckedDiv<i8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &i8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u16> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<u16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u16> for Decimal

Source§

type Output = <Decimal as CheckedDiv<u16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u32> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<u32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u32> for Decimal

Source§

type Output = <Decimal as CheckedDiv<u32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u64> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<u64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u64> for Decimal

Source§

type Output = <Decimal as CheckedDiv<u64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u8> for &Decimal

Source§

type Output = <Decimal as CheckedDiv<u8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<&u8> for Decimal

Source§

type Output = <Decimal as CheckedDiv<u8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: &u8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

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

Source§

type Output = <Decimal as CheckedDiv>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a i128

Source§

type Output = <i128 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a i16

Source§

type Output = <i16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a i32

Source§

type Output = <i32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a i64

Source§

type Output = <i64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a i8

Source§

type Output = <i8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a u16

Source§

type Output = <u16 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a u32

Source§

type Output = <u32 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a u64

Source§

type Output = <u64 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<Decimal> for &'a u8

Source§

type Output = <u8 as CheckedDiv<Decimal>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for i128

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for i16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for i32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for i64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for i8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for u16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for u32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for u64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<Decimal> for u8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Decimal) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<i128> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<i128>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i128) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<i128> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i128) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<i16> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<i16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<i16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<i32> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<i32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<i32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<i64> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<i64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<i64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<i8> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<i8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<i8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: i8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<u16> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<u16>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<u16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u16) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<u32> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<u32>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<u32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u32) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<u64> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<u64>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<u64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u64) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedDiv<u8> for &'a Decimal

Source§

type Output = <Decimal as CheckedDiv<u8>>::Output

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv<u8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: u8) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedDiv for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_div.
Source§

fn checked_div(self, rhs: Self) -> Self::Output

Returns Some(self / rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &Decimal

Source§

type Output = <Decimal as CheckedMul>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &i128

Source§

type Output = <i128 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &i16

Source§

type Output = <i16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &i32

Source§

type Output = <i32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &i64

Source§

type Output = <i64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &i8

Source§

type Output = <i8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &u16

Source§

type Output = <u16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &u32

Source§

type Output = <u32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &u64

Source§

type Output = <u64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for &u8

Source§

type Output = <u8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for Decimal

Source§

type Output = <Decimal as CheckedMul>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for i128

Source§

type Output = <i128 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for i16

Source§

type Output = <i16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for i32

Source§

type Output = <i32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for i64

Source§

type Output = <i64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for i8

Source§

type Output = <i8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for u16

Source§

type Output = <u16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for u32

Source§

type Output = <u32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for u64

Source§

type Output = <u64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&Decimal> for u8

Source§

type Output = <u8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i128> for &Decimal

Source§

type Output = <Decimal as CheckedMul<i128>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i128) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i128> for Decimal

Source§

type Output = <Decimal as CheckedMul<i128>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i128) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i16> for &Decimal

Source§

type Output = <Decimal as CheckedMul<i16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i16> for Decimal

Source§

type Output = <Decimal as CheckedMul<i16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i32> for &Decimal

Source§

type Output = <Decimal as CheckedMul<i32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i32> for Decimal

Source§

type Output = <Decimal as CheckedMul<i32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i64> for &Decimal

Source§

type Output = <Decimal as CheckedMul<i64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i64> for Decimal

Source§

type Output = <Decimal as CheckedMul<i64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i8> for &Decimal

Source§

type Output = <Decimal as CheckedMul<i8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&i8> for Decimal

Source§

type Output = <Decimal as CheckedMul<i8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &i8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u16> for &Decimal

Source§

type Output = <Decimal as CheckedMul<u16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u16> for Decimal

Source§

type Output = <Decimal as CheckedMul<u16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u32> for &Decimal

Source§

type Output = <Decimal as CheckedMul<u32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u32> for Decimal

Source§

type Output = <Decimal as CheckedMul<u32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u64> for &Decimal

Source§

type Output = <Decimal as CheckedMul<u64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u64> for Decimal

Source§

type Output = <Decimal as CheckedMul<u64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u8> for &Decimal

Source§

type Output = <Decimal as CheckedMul<u8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<&u8> for Decimal

Source§

type Output = <Decimal as CheckedMul<u8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: &u8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

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

Source§

type Output = <Decimal as CheckedMul>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a i128

Source§

type Output = <i128 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a i16

Source§

type Output = <i16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a i32

Source§

type Output = <i32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a i64

Source§

type Output = <i64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a i8

Source§

type Output = <i8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a u16

Source§

type Output = <u16 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a u32

Source§

type Output = <u32 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a u64

Source§

type Output = <u64 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<Decimal> for &'a u8

Source§

type Output = <u8 as CheckedMul<Decimal>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for i128

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for i16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for i32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for i64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for i8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for u16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for u32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for u64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<Decimal> for u8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Decimal) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<i128> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<i128>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i128) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<i128> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i128) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<i16> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<i16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<i16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<i32> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<i32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<i32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<i64> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<i64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<i64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<i8> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<i8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<i8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: i8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<u16> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<u16>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<u16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u16) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<u32> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<u32>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<u32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u32) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<u64> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<u64>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<u64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u64) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedMul<u8> for &'a Decimal

Source§

type Output = <Decimal as CheckedMul<u8>>::Output

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul<u8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: u8) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedMul for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_mul.
Source§

fn checked_mul(self, rhs: Self) -> Self::Output

Returns Some(self * rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &Decimal

Source§

type Output = <Decimal as CheckedRem>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &i128

Source§

type Output = <i128 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &i16

Source§

type Output = <i16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &i32

Source§

type Output = <i32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &i64

Source§

type Output = <i64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &i8

Source§

type Output = <i8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &u16

Source§

type Output = <u16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &u32

Source§

type Output = <u32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &u64

Source§

type Output = <u64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for &u8

Source§

type Output = <u8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for Decimal

Source§

type Output = <Decimal as CheckedRem>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for i128

Source§

type Output = <i128 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for i16

Source§

type Output = <i16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for i32

Source§

type Output = <i32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for i64

Source§

type Output = <i64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for i8

Source§

type Output = <i8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for u16

Source§

type Output = <u16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for u32

Source§

type Output = <u32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for u64

Source§

type Output = <u64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&Decimal> for u8

Source§

type Output = <u8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i128> for &Decimal

Source§

type Output = <Decimal as CheckedRem<i128>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i128) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i128> for Decimal

Source§

type Output = <Decimal as CheckedRem<i128>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i128) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i16> for &Decimal

Source§

type Output = <Decimal as CheckedRem<i16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i16> for Decimal

Source§

type Output = <Decimal as CheckedRem<i16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i32> for &Decimal

Source§

type Output = <Decimal as CheckedRem<i32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i32> for Decimal

Source§

type Output = <Decimal as CheckedRem<i32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i64> for &Decimal

Source§

type Output = <Decimal as CheckedRem<i64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i64> for Decimal

Source§

type Output = <Decimal as CheckedRem<i64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i8> for &Decimal

Source§

type Output = <Decimal as CheckedRem<i8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&i8> for Decimal

Source§

type Output = <Decimal as CheckedRem<i8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &i8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u16> for &Decimal

Source§

type Output = <Decimal as CheckedRem<u16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u16> for Decimal

Source§

type Output = <Decimal as CheckedRem<u16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u32> for &Decimal

Source§

type Output = <Decimal as CheckedRem<u32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u32> for Decimal

Source§

type Output = <Decimal as CheckedRem<u32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u64> for &Decimal

Source§

type Output = <Decimal as CheckedRem<u64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u64> for Decimal

Source§

type Output = <Decimal as CheckedRem<u64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u8> for &Decimal

Source§

type Output = <Decimal as CheckedRem<u8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<&u8> for Decimal

Source§

type Output = <Decimal as CheckedRem<u8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: &u8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

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

Source§

type Output = <Decimal as CheckedRem>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a i128

Source§

type Output = <i128 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a i16

Source§

type Output = <i16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a i32

Source§

type Output = <i32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a i64

Source§

type Output = <i64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a i8

Source§

type Output = <i8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a u16

Source§

type Output = <u16 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a u32

Source§

type Output = <u32 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a u64

Source§

type Output = <u64 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<Decimal> for &'a u8

Source§

type Output = <u8 as CheckedRem<Decimal>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for i128

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for i16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for i32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for i64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for i8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for u16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for u32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for u64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<Decimal> for u8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Decimal) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<i128> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<i128>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i128) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<i128> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i128) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<i16> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<i16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<i16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<i32> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<i32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<i32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<i64> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<i64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<i64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<i8> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<i8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<i8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: i8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<u16> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<u16>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<u16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u16) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<u32> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<u32>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<u32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u32) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<u64> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<u64>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<u64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u64) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedRem<u8> for &'a Decimal

Source§

type Output = <Decimal as CheckedRem<u8>>::Output

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem<u8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: u8) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedRem for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_rem.
Source§

fn checked_rem(self, rhs: Self) -> Self::Output

Returns Some(self % rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &Decimal

Source§

type Output = <Decimal as CheckedSub>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &i128

Source§

type Output = <i128 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &i16

Source§

type Output = <i16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &i32

Source§

type Output = <i32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &i64

Source§

type Output = <i64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &i8

Source§

type Output = <i8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &u16

Source§

type Output = <u16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &u32

Source§

type Output = <u32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &u64

Source§

type Output = <u64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for &u8

Source§

type Output = <u8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for Decimal

Source§

type Output = <Decimal as CheckedSub>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for i128

Source§

type Output = <i128 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for i16

Source§

type Output = <i16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for i32

Source§

type Output = <i32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for i64

Source§

type Output = <i64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for i8

Source§

type Output = <i8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for u16

Source§

type Output = <u16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for u32

Source§

type Output = <u32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for u64

Source§

type Output = <u64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&Decimal> for u8

Source§

type Output = <u8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i128> for &Decimal

Source§

type Output = <Decimal as CheckedSub<i128>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i128) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i128> for Decimal

Source§

type Output = <Decimal as CheckedSub<i128>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i128) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i16> for &Decimal

Source§

type Output = <Decimal as CheckedSub<i16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i16> for Decimal

Source§

type Output = <Decimal as CheckedSub<i16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i32> for &Decimal

Source§

type Output = <Decimal as CheckedSub<i32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i32> for Decimal

Source§

type Output = <Decimal as CheckedSub<i32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i64> for &Decimal

Source§

type Output = <Decimal as CheckedSub<i64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i64> for Decimal

Source§

type Output = <Decimal as CheckedSub<i64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i8> for &Decimal

Source§

type Output = <Decimal as CheckedSub<i8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&i8> for Decimal

Source§

type Output = <Decimal as CheckedSub<i8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &i8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u16> for &Decimal

Source§

type Output = <Decimal as CheckedSub<u16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u16> for Decimal

Source§

type Output = <Decimal as CheckedSub<u16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u32> for &Decimal

Source§

type Output = <Decimal as CheckedSub<u32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u32> for Decimal

Source§

type Output = <Decimal as CheckedSub<u32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u64> for &Decimal

Source§

type Output = <Decimal as CheckedSub<u64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u64> for Decimal

Source§

type Output = <Decimal as CheckedSub<u64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u8> for &Decimal

Source§

type Output = <Decimal as CheckedSub<u8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<&u8> for Decimal

Source§

type Output = <Decimal as CheckedSub<u8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: &u8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

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

Source§

type Output = <Decimal as CheckedSub>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a i128

Source§

type Output = <i128 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a i16

Source§

type Output = <i16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a i32

Source§

type Output = <i32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a i64

Source§

type Output = <i64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a i8

Source§

type Output = <i8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a u16

Source§

type Output = <u16 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a u32

Source§

type Output = <u32 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a u64

Source§

type Output = <u64 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<Decimal> for &'a u8

Source§

type Output = <u8 as CheckedSub<Decimal>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for i128

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for i16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for i32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for i64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for i8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for u16

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for u32

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for u64

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<Decimal> for u8

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Decimal) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<i128> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<i128>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i128) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<i128> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i128) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<i16> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<i16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<i16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<i32> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<i32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<i32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<i64> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<i64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<i64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<i8> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<i8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<i8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: i8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<u16> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<u16>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<u16> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u16) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<u32> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<u32>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<u32> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u32) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<u64> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<u64>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<u64> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u64) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl<'a> CheckedSub<u8> for &'a Decimal

Source§

type Output = <Decimal as CheckedSub<u8>>::Output

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub<u8> for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: u8) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output type.
Source§

impl CheckedSub for Decimal

Source§

type Output = Option<Decimal>

The resulting type after applying checked_sub.
Source§

fn checked_sub(self, rhs: Self) -> Self::Output

Returns Some(self - rhs) or None if the result can not be represented by the Output 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, form: &mut Formatter<'_>) -> Result

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

impl Default for Decimal

Source§

fn default() -> Self

Default value: Decimal::ZERO

Source§

impl Display for Decimal

Source§

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

Formats the value using the given formatter.

If the format specifies less fractional digits than self.n_frac_digits(), the value gets rounded according to the default rounding mode.

§Examples:
let d = Dec!(-1234.56);
assert_eq!(format!("{}", d), "-1234.56");
assert_eq!(format!("{:014.3}", d), "-000001234.560");
assert_eq!(format!("{:10.1}", d), "   -1234.6");
Source§

impl Div<&Decimal> for &Decimal

Source§

type Output = <Decimal as Div>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &i128
where i128: Div<Decimal>,

Source§

type Output = <i128 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &i16
where i16: Div<Decimal>,

Source§

type Output = <i16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &i32
where i32: Div<Decimal>,

Source§

type Output = <i32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &i64
where i64: Div<Decimal>,

Source§

type Output = <i64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &i8
where i8: Div<Decimal>,

Source§

type Output = <i8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &u16
where u16: Div<Decimal>,

Source§

type Output = <u16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &u32
where u32: Div<Decimal>,

Source§

type Output = <u32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &u64
where u64: Div<Decimal>,

Source§

type Output = <u64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for &u8
where u8: Div<Decimal>,

Source§

type Output = <u8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for Decimal

Source§

type Output = <Decimal as Div>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for i128
where i128: Div<Decimal>,

Source§

type Output = <i128 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for i16
where i16: Div<Decimal>,

Source§

type Output = <i16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for i32
where i32: Div<Decimal>,

Source§

type Output = <i32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for i64
where i64: Div<Decimal>,

Source§

type Output = <i64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for i8
where i8: Div<Decimal>,

Source§

type Output = <i8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for u16
where u16: Div<Decimal>,

Source§

type Output = <u16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for u32
where u32: Div<Decimal>,

Source§

type Output = <u32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for u64
where u64: Div<Decimal>,

Source§

type Output = <u64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&Decimal> for u8
where u8: Div<Decimal>,

Source§

type Output = <u8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i128> for &Decimal
where Decimal: Div<i128>,

Source§

type Output = <Decimal as Div<i128>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i128> for Decimal
where Decimal: Div<i128>,

Source§

type Output = <Decimal as Div<i128>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i16> for &Decimal
where Decimal: Div<i16>,

Source§

type Output = <Decimal as Div<i16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i16> for Decimal
where Decimal: Div<i16>,

Source§

type Output = <Decimal as Div<i16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i32> for &Decimal
where Decimal: Div<i32>,

Source§

type Output = <Decimal as Div<i32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i32> for Decimal
where Decimal: Div<i32>,

Source§

type Output = <Decimal as Div<i32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i64> for &Decimal
where Decimal: Div<i64>,

Source§

type Output = <Decimal as Div<i64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i64> for Decimal
where Decimal: Div<i64>,

Source§

type Output = <Decimal as Div<i64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i8> for &Decimal
where Decimal: Div<i8>,

Source§

type Output = <Decimal as Div<i8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&i8> for Decimal
where Decimal: Div<i8>,

Source§

type Output = <Decimal as Div<i8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u16> for &Decimal
where Decimal: Div<u16>,

Source§

type Output = <Decimal as Div<u16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u16> for Decimal
where Decimal: Div<u16>,

Source§

type Output = <Decimal as Div<u16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u32> for &Decimal
where Decimal: Div<u32>,

Source§

type Output = <Decimal as Div<u32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u32> for Decimal
where Decimal: Div<u32>,

Source§

type Output = <Decimal as Div<u32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u64> for &Decimal
where Decimal: Div<u64>,

Source§

type Output = <Decimal as Div<u64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u64> for Decimal
where Decimal: Div<u64>,

Source§

type Output = <Decimal as Div<u64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u8> for &Decimal
where Decimal: Div<u8>,

Source§

type Output = <Decimal as Div<u8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<&u8> for Decimal
where Decimal: Div<u8>,

Source§

type Output = <Decimal as Div<u8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = <Decimal as Div>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a i128
where i128: Div<Decimal>,

Source§

type Output = <i128 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a i16
where i16: Div<Decimal>,

Source§

type Output = <i16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a i32
where i32: Div<Decimal>,

Source§

type Output = <i32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a i64
where i64: Div<Decimal>,

Source§

type Output = <i64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a i8
where i8: Div<Decimal>,

Source§

type Output = <i8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a u16
where u16: Div<Decimal>,

Source§

type Output = <u16 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a u32
where u32: Div<Decimal>,

Source§

type Output = <u32 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a u64
where u64: Div<Decimal>,

Source§

type Output = <u64 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<Decimal> for &'a u8
where u8: Div<Decimal>,

Source§

type Output = <u8 as Div<Decimal>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<i128> for &'a Decimal
where Decimal: Div<i128>,

Source§

type Output = <Decimal as Div<i128>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<i16> for &'a Decimal
where Decimal: Div<i16>,

Source§

type Output = <Decimal as Div<i16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<i32> for &'a Decimal
where Decimal: Div<i32>,

Source§

type Output = <Decimal as Div<i32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<i64> for &'a Decimal
where Decimal: Div<i64>,

Source§

type Output = <Decimal as Div<i64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<i8> for &'a Decimal
where Decimal: Div<i8>,

Source§

type Output = <Decimal as Div<i8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<u16> for &'a Decimal
where Decimal: Div<u16>,

Source§

type Output = <Decimal as Div<u16>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<u32> for &'a Decimal
where Decimal: Div<u32>,

Source§

type Output = <Decimal as Div<u32>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<u64> for &'a Decimal
where Decimal: Div<u64>,

Source§

type Output = <Decimal as Div<u64>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a> Div<u8> for &'a Decimal
where Decimal: Div<u8>,

Source§

type Output = <Decimal as Div<u8>>::Output

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div for Decimal

Source§

type Output = Decimal

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<T> DivAssign<T> for Decimal
where Decimal: Div<T, Output = Self>,

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl DivRounded<&Decimal> for &Decimal

Source§

type Output = <Decimal as DivRounded>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Decimal

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &i128

Source§

type Output = <i128 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &i16

Source§

type Output = <i16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &i32

Source§

type Output = <i32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &i64

Source§

type Output = <i64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &i8

Source§

type Output = <i8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &u16

Source§

type Output = <u16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &u32

Source§

type Output = <u32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &u64

Source§

type Output = <u64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for &u8

Source§

type Output = <u8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for Decimal

Source§

type Output = <Decimal as DivRounded>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Decimal

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for i128

Source§

type Output = <i128 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for i16

Source§

type Output = <i16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for i32

Source§

type Output = <i32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for i64

Source§

type Output = <i64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for i8

Source§

type Output = <i8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for u16

Source§

type Output = <u16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for u32

Source§

type Output = <u32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for u64

Source§

type Output = <u64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&Decimal> for u8

Source§

type Output = <u8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i128> for &Decimal

Source§

type Output = <Decimal as DivRounded<i128>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i128, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i128> for Decimal

Source§

type Output = <Decimal as DivRounded<i128>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i128, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i16> for &Decimal

Source§

type Output = <Decimal as DivRounded<i16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i16> for Decimal

Source§

type Output = <Decimal as DivRounded<i16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i32> for &Decimal

Source§

type Output = <Decimal as DivRounded<i32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i32> for Decimal

Source§

type Output = <Decimal as DivRounded<i32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i64> for &Decimal

Source§

type Output = <Decimal as DivRounded<i64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i64> for Decimal

Source§

type Output = <Decimal as DivRounded<i64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i8> for &Decimal

Source§

type Output = <Decimal as DivRounded<i8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&i8> for Decimal

Source§

type Output = <Decimal as DivRounded<i8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &i8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u16> for &Decimal

Source§

type Output = <Decimal as DivRounded<u16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u16> for Decimal

Source§

type Output = <Decimal as DivRounded<u16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u32> for &Decimal

Source§

type Output = <Decimal as DivRounded<u32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u32> for Decimal

Source§

type Output = <Decimal as DivRounded<u32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u64> for &Decimal

Source§

type Output = <Decimal as DivRounded<u64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u64> for Decimal

Source§

type Output = <Decimal as DivRounded<u64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u8> for &Decimal

Source§

type Output = <Decimal as DivRounded<u8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<&u8> for Decimal

Source§

type Output = <Decimal as DivRounded<u8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: &u8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

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

Source§

type Output = <Decimal as DivRounded>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Decimal

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a i128

Source§

type Output = <i128 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a i16

Source§

type Output = <i16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a i32

Source§

type Output = <i32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a i64

Source§

type Output = <i64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a i8

Source§

type Output = <i8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a u16

Source§

type Output = <u16 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a u32

Source§

type Output = <u32 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a u64

Source§

type Output = <u64 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<Decimal> for &'a u8

Source§

type Output = <u8 as DivRounded<Decimal>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<i128> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<i128>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i128, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i128, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<i16> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<i16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<i32> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<i32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<i64> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<i64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<i8> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<i8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: i8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<u16> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<u16>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u16, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<u32> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<u32>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u32, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<u64> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<u64>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u64, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl<'a> DivRounded<u8> for &'a Decimal

Source§

type Output = <Decimal as DivRounded<u8>>::Output

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: u8, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl DivRounded for Decimal

Source§

type Output = Decimal

The resulting type after applying div_rounded.
Source§

fn div_rounded(self, rhs: Self, n_frac_digits: u8) -> Self::Output

Returns self / rhs, rounded to n_frac_digits, according to the current RoundingMode. Read more
Source§

impl From<Decimal> for String

Source§

fn from(d: Decimal) -> Self

Converts to this type from the input type.
Source§

impl From<Decimal> for f32

Source§

fn from(d: Decimal) -> Self

Converts a Decimal value d into an f32. Returns the value as f32, rounded to the nearest value representable as such.

Source§

impl From<Decimal> for f64

Source§

fn from(d: Decimal) -> Self

Converts a Decimal value d into an f64. Returns the value as f64, rounded to the nearest value representable as such.

Source§

impl From<i128> for Decimal

Source§

fn from(i: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Decimal

Source§

fn from(i: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Decimal

Source§

fn from(i: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Decimal

Source§

fn from(i: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Decimal

Source§

fn from(i: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Decimal

Source§

fn from(i: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Decimal

Source§

fn from(i: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Decimal

Source§

fn from(i: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Decimal

Source§

fn from(i: u8) -> Self

Converts to this type from the input type.
Source§

impl FromStr for Decimal

Source§

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

Convert a number literal into a Decimal.

The literal must be in the form

[+|-]<int>[.<frac>][<e|E>[+|-]<exp>]

or

[+|-].<frac>[<e|E>[+|-]<exp>].

The function returns an error in these cases:

  • An empty string has been given as lit -> ParseDecimalError::Empty
  • lit does not fit one of the two forms given above -> ParseDecimalError::Invalid
  • The number of fractional digits in lit minus the value of the signed exponent in lit exceeds crate::MAX_N_FRAC_DIGITS -> ParseDecimalError::FracDigitLimitExceeded
  • The given decimal literal exceeds the internal representation of Decimal -> ParseDecimalError::InternalOverflow
§Examples:
let d = Decimal::from_str("38.207")?;
assert_eq!(d.to_string(), "38.207");
let d = Decimal::from_str("-132.02070e-2")?;
assert_eq!(d.to_string(), "-1.3202070");
Source§

type Err = ParseDecimalError

The associated error which can be returned from parsing.
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

Source§

type Output = <Decimal as Mul>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &i128
where i128: Mul<Decimal>,

Source§

type Output = <i128 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &i16
where i16: Mul<Decimal>,

Source§

type Output = <i16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &i32
where i32: Mul<Decimal>,

Source§

type Output = <i32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &i64
where i64: Mul<Decimal>,

Source§

type Output = <i64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &i8
where i8: Mul<Decimal>,

Source§

type Output = <i8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &u16
where u16: Mul<Decimal>,

Source§

type Output = <u16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &u32
where u32: Mul<Decimal>,

Source§

type Output = <u32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &u64
where u64: Mul<Decimal>,

Source§

type Output = <u64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for &u8
where u8: Mul<Decimal>,

Source§

type Output = <u8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for Decimal

Source§

type Output = <Decimal as Mul>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for i128
where i128: Mul<Decimal>,

Source§

type Output = <i128 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for i16
where i16: Mul<Decimal>,

Source§

type Output = <i16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for i32
where i32: Mul<Decimal>,

Source§

type Output = <i32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for i64
where i64: Mul<Decimal>,

Source§

type Output = <i64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for i8
where i8: Mul<Decimal>,

Source§

type Output = <i8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for u16
where u16: Mul<Decimal>,

Source§

type Output = <u16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for u32
where u32: Mul<Decimal>,

Source§

type Output = <u32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for u64
where u64: Mul<Decimal>,

Source§

type Output = <u64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&Decimal> for u8
where u8: Mul<Decimal>,

Source§

type Output = <u8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i128> for &Decimal
where Decimal: Mul<i128>,

Source§

type Output = <Decimal as Mul<i128>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i128> for Decimal
where Decimal: Mul<i128>,

Source§

type Output = <Decimal as Mul<i128>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i16> for &Decimal
where Decimal: Mul<i16>,

Source§

type Output = <Decimal as Mul<i16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i16> for Decimal
where Decimal: Mul<i16>,

Source§

type Output = <Decimal as Mul<i16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i32> for &Decimal
where Decimal: Mul<i32>,

Source§

type Output = <Decimal as Mul<i32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i32> for Decimal
where Decimal: Mul<i32>,

Source§

type Output = <Decimal as Mul<i32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i64> for &Decimal
where Decimal: Mul<i64>,

Source§

type Output = <Decimal as Mul<i64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i64> for Decimal
where Decimal: Mul<i64>,

Source§

type Output = <Decimal as Mul<i64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i8> for &Decimal
where Decimal: Mul<i8>,

Source§

type Output = <Decimal as Mul<i8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&i8> for Decimal
where Decimal: Mul<i8>,

Source§

type Output = <Decimal as Mul<i8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u16> for &Decimal
where Decimal: Mul<u16>,

Source§

type Output = <Decimal as Mul<u16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u16> for Decimal
where Decimal: Mul<u16>,

Source§

type Output = <Decimal as Mul<u16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u32> for &Decimal
where Decimal: Mul<u32>,

Source§

type Output = <Decimal as Mul<u32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u32> for Decimal
where Decimal: Mul<u32>,

Source§

type Output = <Decimal as Mul<u32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u64> for &Decimal
where Decimal: Mul<u64>,

Source§

type Output = <Decimal as Mul<u64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u64> for Decimal
where Decimal: Mul<u64>,

Source§

type Output = <Decimal as Mul<u64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u8> for &Decimal
where Decimal: Mul<u8>,

Source§

type Output = <Decimal as Mul<u8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<&u8> for Decimal
where Decimal: Mul<u8>,

Source§

type Output = <Decimal as Mul<u8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = <Decimal as Mul>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a i128
where i128: Mul<Decimal>,

Source§

type Output = <i128 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a i16
where i16: Mul<Decimal>,

Source§

type Output = <i16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a i32
where i32: Mul<Decimal>,

Source§

type Output = <i32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a i64
where i64: Mul<Decimal>,

Source§

type Output = <i64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a i8
where i8: Mul<Decimal>,

Source§

type Output = <i8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a u16
where u16: Mul<Decimal>,

Source§

type Output = <u16 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a u32
where u32: Mul<Decimal>,

Source§

type Output = <u32 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a u64
where u64: Mul<Decimal>,

Source§

type Output = <u64 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<Decimal> for &'a u8
where u8: Mul<Decimal>,

Source§

type Output = <u8 as Mul<Decimal>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<i128> for &'a Decimal
where Decimal: Mul<i128>,

Source§

type Output = <Decimal as Mul<i128>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<i16> for &'a Decimal
where Decimal: Mul<i16>,

Source§

type Output = <Decimal as Mul<i16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<i32> for &'a Decimal
where Decimal: Mul<i32>,

Source§

type Output = <Decimal as Mul<i32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<i64> for &'a Decimal
where Decimal: Mul<i64>,

Source§

type Output = <Decimal as Mul<i64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<i8> for &'a Decimal
where Decimal: Mul<i8>,

Source§

type Output = <Decimal as Mul<i8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<u16> for &'a Decimal
where Decimal: Mul<u16>,

Source§

type Output = <Decimal as Mul<u16>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<u32> for &'a Decimal
where Decimal: Mul<u32>,

Source§

type Output = <Decimal as Mul<u32>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<u64> for &'a Decimal
where Decimal: Mul<u64>,

Source§

type Output = <Decimal as Mul<u64>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a> Mul<u8> for &'a Decimal
where Decimal: Mul<u8>,

Source§

type Output = <Decimal as Mul<u8>>::Output

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for Decimal

Source§

type Output = Decimal

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<T> MulAssign<T> for Decimal
where Decimal: Mul<T, Output = Self>,

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl MulRounded<&Decimal> for &Decimal

Source§

type Output = <Decimal as MulRounded>::Output

The resulting type after applying mul_rounded.
Source§

fn mul_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Decimal

Returns self * rhs, rounded to n_frac_digits.
Source§

impl MulRounded<&Decimal> for Decimal

Source§

type Output = <Decimal as MulRounded>::Output

The resulting type after applying mul_rounded.
Source§

fn mul_rounded(self, rhs: &Decimal, n_frac_digits: u8) -> Decimal

Returns self * rhs, rounded to n_frac_digits.
Source§

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

Source§

type Output = <Decimal as MulRounded>::Output

The resulting type after applying mul_rounded.
Source§

fn mul_rounded(self, rhs: Decimal, n_frac_digits: u8) -> Decimal

Returns self * rhs, rounded to n_frac_digits.
Source§

impl MulRounded for Decimal

Source§

type Output = Decimal

The resulting type after applying mul_rounded.
Source§

fn mul_rounded(self, rhs: Self, n_frac_digits: u8) -> Self::Output

Returns self * rhs, rounded to n_frac_digits.
Source§

impl Neg for &Decimal

Source§

fn neg(self) -> Self::Output

Returns -self.

#Panics

Panics with ‘attempt to negate with overflow’ when called on a Decimal with a coefficient equal to i128::MIN!

Source§

type Output = <Decimal as Neg>::Output

The resulting type after applying the - operator.
Source§

impl Neg for Decimal

Source§

fn neg(self) -> Self::Output

Returns -self.

§Panics

Panics with ‘attempt to negate with overflow’ when called on a Decimal with a coefficient equal to i128::MIN!

Source§

type Output = Decimal

The resulting type after applying the - operator.
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) -> Self
where Self: Sized,

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

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

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

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

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

impl PartialEq<Decimal> for i128

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for i16

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for i32

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for i64

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for i8

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for u16

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for u32

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for u64

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Decimal> for u8

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i128> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i16> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i32> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i64> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i8> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u16> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u32> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u64> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u8> for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for Decimal

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<Decimal> for i128

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for i16

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for i32

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for i64

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for i8

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for u16

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for u32

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for u64

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Decimal> for u8

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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i128> for Decimal

Source§

fn partial_cmp(&self, other: &i128) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i16> for Decimal

Source§

fn partial_cmp(&self, other: &i16) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i32> for Decimal

Source§

fn partial_cmp(&self, other: &i32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i64> for Decimal

Source§

fn partial_cmp(&self, other: &i64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i8> for Decimal

Source§

fn partial_cmp(&self, other: &i8) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u16> for Decimal

Source§

fn partial_cmp(&self, other: &u16) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u32> for Decimal

Source§

fn partial_cmp(&self, other: &u32) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u64> for Decimal

Source§

fn partial_cmp(&self, other: &u64) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u8> for Decimal

Source§

fn partial_cmp(&self, other: &u8) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem<&Decimal> for &Decimal

Source§

type Output = <Decimal as Rem>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &i128
where i128: Rem<Decimal>,

Source§

type Output = <i128 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &i16
where i16: Rem<Decimal>,

Source§

type Output = <i16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &i32
where i32: Rem<Decimal>,

Source§

type Output = <i32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &i64
where i64: Rem<Decimal>,

Source§

type Output = <i64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &i8
where i8: Rem<Decimal>,

Source§

type Output = <i8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &u16
where u16: Rem<Decimal>,

Source§

type Output = <u16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &u32
where u32: Rem<Decimal>,

Source§

type Output = <u32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &u64
where u64: Rem<Decimal>,

Source§

type Output = <u64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for &u8
where u8: Rem<Decimal>,

Source§

type Output = <u8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for Decimal

Source§

type Output = <Decimal as Rem>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for i128
where i128: Rem<Decimal>,

Source§

type Output = <i128 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for i16
where i16: Rem<Decimal>,

Source§

type Output = <i16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for i32
where i32: Rem<Decimal>,

Source§

type Output = <i32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for i64
where i64: Rem<Decimal>,

Source§

type Output = <i64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for i8
where i8: Rem<Decimal>,

Source§

type Output = <i8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for u16
where u16: Rem<Decimal>,

Source§

type Output = <u16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for u32
where u32: Rem<Decimal>,

Source§

type Output = <u32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for u64
where u64: Rem<Decimal>,

Source§

type Output = <u64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Decimal> for u8
where u8: Rem<Decimal>,

Source§

type Output = <u8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i128> for &Decimal
where Decimal: Rem<i128>,

Source§

type Output = <Decimal as Rem<i128>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i128> for Decimal
where Decimal: Rem<i128>,

Source§

type Output = <Decimal as Rem<i128>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i16> for &Decimal
where Decimal: Rem<i16>,

Source§

type Output = <Decimal as Rem<i16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i16> for Decimal
where Decimal: Rem<i16>,

Source§

type Output = <Decimal as Rem<i16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i32> for &Decimal
where Decimal: Rem<i32>,

Source§

type Output = <Decimal as Rem<i32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i32> for Decimal
where Decimal: Rem<i32>,

Source§

type Output = <Decimal as Rem<i32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i64> for &Decimal
where Decimal: Rem<i64>,

Source§

type Output = <Decimal as Rem<i64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i64> for Decimal
where Decimal: Rem<i64>,

Source§

type Output = <Decimal as Rem<i64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i8> for &Decimal
where Decimal: Rem<i8>,

Source§

type Output = <Decimal as Rem<i8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&i8> for Decimal
where Decimal: Rem<i8>,

Source§

type Output = <Decimal as Rem<i8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u16> for &Decimal
where Decimal: Rem<u16>,

Source§

type Output = <Decimal as Rem<u16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u16> for Decimal
where Decimal: Rem<u16>,

Source§

type Output = <Decimal as Rem<u16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u32> for &Decimal
where Decimal: Rem<u32>,

Source§

type Output = <Decimal as Rem<u32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u32> for Decimal
where Decimal: Rem<u32>,

Source§

type Output = <Decimal as Rem<u32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u64> for &Decimal
where Decimal: Rem<u64>,

Source§

type Output = <Decimal as Rem<u64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u64> for Decimal
where Decimal: Rem<u64>,

Source§

type Output = <Decimal as Rem<u64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u8> for &Decimal
where Decimal: Rem<u8>,

Source§

type Output = <Decimal as Rem<u8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&u8> for Decimal
where Decimal: Rem<u8>,

Source§

type Output = <Decimal as Rem<u8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

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

Source§

type Output = <Decimal as Rem>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a i128
where i128: Rem<Decimal>,

Source§

type Output = <i128 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a i16
where i16: Rem<Decimal>,

Source§

type Output = <i16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a i32
where i32: Rem<Decimal>,

Source§

type Output = <i32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a i64
where i64: Rem<Decimal>,

Source§

type Output = <i64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a i8
where i8: Rem<Decimal>,

Source§

type Output = <i8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a u16
where u16: Rem<Decimal>,

Source§

type Output = <u16 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a u32
where u32: Rem<Decimal>,

Source§

type Output = <u32 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a u64
where u64: Rem<Decimal>,

Source§

type Output = <u64 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<Decimal> for &'a u8
where u8: Rem<Decimal>,

Source§

type Output = <u8 as Rem<Decimal>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<i128> for &'a Decimal
where Decimal: Rem<i128>,

Source§

type Output = <Decimal as Rem<i128>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<i16> for &'a Decimal
where Decimal: Rem<i16>,

Source§

type Output = <Decimal as Rem<i16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<i32> for &'a Decimal
where Decimal: Rem<i32>,

Source§

type Output = <Decimal as Rem<i32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<i64> for &'a Decimal
where Decimal: Rem<i64>,

Source§

type Output = <Decimal as Rem<i64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<i8> for &'a Decimal
where Decimal: Rem<i8>,

Source§

type Output = <Decimal as Rem<i8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<u16> for &'a Decimal
where Decimal: Rem<u16>,

Source§

type Output = <Decimal as Rem<u16>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<u32> for &'a Decimal
where Decimal: Rem<u32>,

Source§

type Output = <Decimal as Rem<u32>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<u64> for &'a Decimal
where Decimal: Rem<u64>,

Source§

type Output = <Decimal as Rem<u64>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'a> Rem<u8> for &'a Decimal
where Decimal: Rem<u8>,

Source§

type Output = <Decimal as Rem<u8>>::Output

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem for Decimal

Source§

type Output = Decimal

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<T> RemAssign<T> for Decimal
where Decimal: Rem<T, Output = Self>,

Source§

fn rem_assign(&mut self, rhs: T)

Performs the %= operation. Read more
Source§

impl Round for Decimal

Source§

fn round(self, n_frac_digits: i8) -> Self

Returns a new Decimal with its value rounded to n_frac_digits fractional digits according to the current RoundingMode.

§Panics

Panics if the resulting value can not be represented by Decimal!

§Examples
let d = Dec!(28.27093);
let r = d.round(4);
assert_eq!(r.to_string(), "28.2709");
let r = d.round(1);
assert_eq!(r.to_string(), "28.3");
let r = d.round(0);
assert_eq!(r.to_string(), "28");
let r = d.round(-1);
assert_eq!(r.to_string(), "30");
Source§

fn checked_round(self, n_frac_digits: i8) -> Option<Self>

Returns a new Decimal instance with its value rounded to n_frac_digits fractional digits according to the current RoundingMode, wrapped in Option::Some, or Option::None if the result can not be represented by Decimal.

§Examples
let d = Dec!(28.27093);
let r = d.checked_round(4)?;
assert_eq!(r.to_string(), "28.2709");
let r = d.checked_round(0)?;
assert_eq!(r.to_string(), "28");
let d = Dec!(170141183460469231731687303715884105727);
let r = d.checked_round(-3);
assert!(r.is_none());
Source§

impl Sub<&Decimal> for &Decimal

Source§

type Output = <Decimal as Sub>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &i128
where i128: Sub<Decimal>,

Source§

type Output = <i128 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &i16
where i16: Sub<Decimal>,

Source§

type Output = <i16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &i32
where i32: Sub<Decimal>,

Source§

type Output = <i32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &i64
where i64: Sub<Decimal>,

Source§

type Output = <i64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &i8
where i8: Sub<Decimal>,

Source§

type Output = <i8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &u16
where u16: Sub<Decimal>,

Source§

type Output = <u16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &u32
where u32: Sub<Decimal>,

Source§

type Output = <u32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &u64
where u64: Sub<Decimal>,

Source§

type Output = <u64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for &u8
where u8: Sub<Decimal>,

Source§

type Output = <u8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for Decimal

Source§

type Output = <Decimal as Sub>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for i128
where i128: Sub<Decimal>,

Source§

type Output = <i128 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for i16
where i16: Sub<Decimal>,

Source§

type Output = <i16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for i32
where i32: Sub<Decimal>,

Source§

type Output = <i32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for i64
where i64: Sub<Decimal>,

Source§

type Output = <i64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for i8
where i8: Sub<Decimal>,

Source§

type Output = <i8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for u16
where u16: Sub<Decimal>,

Source§

type Output = <u16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for u32
where u32: Sub<Decimal>,

Source§

type Output = <u32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for u64
where u64: Sub<Decimal>,

Source§

type Output = <u64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&Decimal> for u8
where u8: Sub<Decimal>,

Source§

type Output = <u8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i128> for &Decimal
where Decimal: Sub<i128>,

Source§

type Output = <Decimal as Sub<i128>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i128> for Decimal
where Decimal: Sub<i128>,

Source§

type Output = <Decimal as Sub<i128>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i16> for &Decimal
where Decimal: Sub<i16>,

Source§

type Output = <Decimal as Sub<i16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i16> for Decimal
where Decimal: Sub<i16>,

Source§

type Output = <Decimal as Sub<i16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i32> for &Decimal
where Decimal: Sub<i32>,

Source§

type Output = <Decimal as Sub<i32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i32> for Decimal
where Decimal: Sub<i32>,

Source§

type Output = <Decimal as Sub<i32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i64> for &Decimal
where Decimal: Sub<i64>,

Source§

type Output = <Decimal as Sub<i64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i64> for Decimal
where Decimal: Sub<i64>,

Source§

type Output = <Decimal as Sub<i64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i8> for &Decimal
where Decimal: Sub<i8>,

Source§

type Output = <Decimal as Sub<i8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&i8> for Decimal
where Decimal: Sub<i8>,

Source§

type Output = <Decimal as Sub<i8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u16> for &Decimal
where Decimal: Sub<u16>,

Source§

type Output = <Decimal as Sub<u16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u16> for Decimal
where Decimal: Sub<u16>,

Source§

type Output = <Decimal as Sub<u16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u32> for &Decimal
where Decimal: Sub<u32>,

Source§

type Output = <Decimal as Sub<u32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u32> for Decimal
where Decimal: Sub<u32>,

Source§

type Output = <Decimal as Sub<u32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u64> for &Decimal
where Decimal: Sub<u64>,

Source§

type Output = <Decimal as Sub<u64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u64> for Decimal
where Decimal: Sub<u64>,

Source§

type Output = <Decimal as Sub<u64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u8> for &Decimal
where Decimal: Sub<u8>,

Source§

type Output = <Decimal as Sub<u8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<&u8> for Decimal
where Decimal: Sub<u8>,

Source§

type Output = <Decimal as Sub<u8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = <Decimal as Sub>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a i128
where i128: Sub<Decimal>,

Source§

type Output = <i128 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a i16
where i16: Sub<Decimal>,

Source§

type Output = <i16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a i32
where i32: Sub<Decimal>,

Source§

type Output = <i32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a i64
where i64: Sub<Decimal>,

Source§

type Output = <i64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a i8
where i8: Sub<Decimal>,

Source§

type Output = <i8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a u16
where u16: Sub<Decimal>,

Source§

type Output = <u16 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a u32
where u32: Sub<Decimal>,

Source§

type Output = <u32 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a u64
where u64: Sub<Decimal>,

Source§

type Output = <u64 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<Decimal> for &'a u8
where u8: Sub<Decimal>,

Source§

type Output = <u8 as Sub<Decimal>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for i128

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for i16

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for i32

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for i64

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for i8

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for u16

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for u32

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for u64

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Decimal> for u8

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<i128> for &'a Decimal
where Decimal: Sub<i128>,

Source§

type Output = <Decimal as Sub<i128>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i128> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<i16> for &'a Decimal
where Decimal: Sub<i16>,

Source§

type Output = <Decimal as Sub<i16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<i32> for &'a Decimal
where Decimal: Sub<i32>,

Source§

type Output = <Decimal as Sub<i32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<i64> for &'a Decimal
where Decimal: Sub<i64>,

Source§

type Output = <Decimal as Sub<i64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<i8> for &'a Decimal
where Decimal: Sub<i8>,

Source§

type Output = <Decimal as Sub<i8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<i8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<u16> for &'a Decimal
where Decimal: Sub<u16>,

Source§

type Output = <Decimal as Sub<u16>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u16> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<u32> for &'a Decimal
where Decimal: Sub<u32>,

Source§

type Output = <Decimal as Sub<u32>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u32> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<u64> for &'a Decimal
where Decimal: Sub<u64>,

Source§

type Output = <Decimal as Sub<u64>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u64> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'a> Sub<u8> for &'a Decimal
where Decimal: Sub<u8>,

Source§

type Output = <Decimal as Sub<u8>>::Output

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<u8> for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for Decimal

Source§

type Output = Decimal

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<T> SubAssign<T> for Decimal
where Decimal: Sub<T, Output = Self>,

Source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
Source§

impl TryFrom<&str> for Decimal

Source§

type Error = ParseDecimalError

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

fn try_from(lit: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Decimal> for i128

Source§

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

Tries to convert a Decimal value d into an i128.

Returns the value as an i128, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of ì128 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for i16

Source§

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

Tries to convert a Decimal value d into an i16.

Returns the value as i16, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of i16 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for i32

Source§

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

Tries to convert a Decimal value d into an i32.

Returns the value as i32, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of i32 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for i64

Source§

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

Tries to convert a Decimal value d into an i64.

Returns the value as i64, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of i64 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for i8

Source§

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

Tries to convert a Decimal value d into an i8.

Returns the value as i8, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of i8 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for u128

Source§

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

Tries to convert a Decimal value d into an u128.

Returns the value as u128, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of u128 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for u16

Source§

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

Tries to convert a Decimal value d into an u16.

Returns the value as u16, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of u16 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for u32

Source§

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

Tries to convert a Decimal value d into an u32.

Returns the value as u32, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of u32 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for u64

Source§

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

Tries to convert a Decimal value d into an u64.

Returns the value as u64, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of u64 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<Decimal> for u8

Source§

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

Tries to convert a Decimal value d into an u8.

Returns the value as u8, if it is representable as such, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • d is not an integral value => TryFromDecimalError::NotAnIntValue,
  • d exceeds the range of u8 values => TryFromDecimalError::ValueOutOfRange.
Source§

type Error = TryFromDecimalError

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

impl TryFrom<String> for Decimal

Source§

type Error = ParseDecimalError

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

fn try_from(lit: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f32> for Decimal

Source§

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

Tries to convert a f32 value f into a Decimal.

Returns the value representable as a Decimal which is nearest to f, if such a value exists, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • f is infinite => DecimalError::InfiniteValue,
  • f is Nan => DecimalError::NotANumber,
  • f > Decimal::MAX => DecimalError::InternalOverflow.

Examples:

let d = Decimal::try_from(-289.5_f32)?;
assert_eq!(d.to_string(), "-289.5");
let d = Decimal::try_from(37.0005003_f32)?;
assert_eq!(d.to_string(), "37.000499725341796875");
Source§

type Error = DecimalError

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

impl TryFrom<f64> for Decimal

Source§

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

Tries to convert a f64 value f into a Decimal.

Returns the value representable as a Decimal which is nearest to f, if such a value exists, wrapped in Result::Ok.

Returns an error (wrapped in Result::Err) in the following cases:

  • f is infinite => DecimalError::InfiniteValue,
  • f is Nan => DecimalError::NotANumber,
  • f > Decimal::MAX => DecimalError::InternalOverflow.

Examples:

let d = Decimal::try_from(-289.5_f64)?;
assert_eq!(d.to_string(), "-289.5");
let d = Decimal::try_from(37.0005003_f64)?;
assert_eq!(d.to_string(), "37.000500299999998788");
Source§

type Error = DecimalError

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

impl TryFrom<u128> for Decimal

Source§

type Error = DecimalError

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

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

Performs the conversion.
Source§

impl Copy for Decimal

Source§

impl Eq for Decimal

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

fn to_string(&self) -> String

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.