pub struct PreciseDecimal(/* private fields */);
Expand description
PreciseDecimal
represents a 256 bit representation of a fixed-scale decimal number.
The finite set of values are of the form m / 10^36
, where m
is
an integer such that -2^(256 - 1) <= m < 2^(256 - 1)
.
Fractional part: ~120 bits / 36 digits
Integer part : 136 bits / 41 digits
Max : 57896044618658097711785492504343953926634.992332820282019728792003956564819967
Min : -57896044618658097711785492504343953926634.992332820282019728792003956564819968
Unless otherwise specified, all operations will panic if there is underflow/overflow.
To create a PreciseDecimal with a certain number of precise 10^(-36)
subunits,
use PreciseDecimal::from_precise_subunits
.
Implementations§
Source§impl PreciseDecimal
impl PreciseDecimal
pub const ZERO: Self
pub const ONE_PRECISE_SUBUNIT: Self
pub const ONE_ATTO: Self
pub const ONE_HUNDREDTH: Self
pub const ONE_TENTH: Self
pub const ONE: Self
pub const TEN: Self
pub const ONE_HUNDRED: Self
Sourcepub const fn from_precise_subunits(attos: I256) -> Self
pub const fn from_precise_subunits(attos: I256) -> Self
Constructs a PreciseDecimal
from its underlying 10^(-36)
subunits.
Sourcepub const fn precise_subunits(self) -> I256
pub const fn precise_subunits(self) -> I256
Returns the underlying 10^(-36)
subunits of the PreciseDecimal
.
Sourcepub const fn zero() -> Self
pub const fn zero() -> Self
Returns a PreciseDecimal
with value 0.
Sourcepub const fn one() -> Self
pub const fn one() -> Self
Returns a PreciseDecimal
with value 1.
Sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
Whether the value is positive.
Sourcepub fn is_negative(&self) -> bool
pub fn is_negative(&self) -> bool
Whether the value is negative.
Sourcepub fn checked_abs(&self) -> Option<Self>
pub fn checked_abs(&self) -> Option<Self>
Returns the absolute value.
Sourcepub fn checked_floor(&self) -> Option<Self>
pub fn checked_floor(&self) -> Option<Self>
Returns the largest integer that is equal to or less than this number.
Sourcepub fn checked_ceiling(&self) -> Option<Self>
pub fn checked_ceiling(&self) -> Option<Self>
Returns the smallest integer that is equal to or greater than this number.
Sourcepub fn checked_round<T: Into<i32>>(
&self,
decimal_places: T,
mode: RoundingMode,
) -> Option<Self>
pub fn checked_round<T: Into<i32>>( &self, decimal_places: T, mode: RoundingMode, ) -> Option<Self>
Rounds this number to the specified decimal places.
§Panics
- Panic if the number of decimal places is not within [0..SCALE]
Sourcepub fn checked_powi(&self, exp: i64) -> Option<Self>
pub fn checked_powi(&self, exp: i64) -> Option<Self>
Calculates power using exponentiation by squaring.
Sourcepub fn checked_sqrt(&self) -> Option<Self>
pub fn checked_sqrt(&self) -> Option<Self>
Square root of a PreciseDecimal
Sourcepub fn checked_cbrt(&self) -> Option<Self>
pub fn checked_cbrt(&self) -> Option<Self>
Cubic root of a PreciseDecimal
Sourcepub fn checked_nth_root(&self, n: u32) -> Option<Self>
pub fn checked_nth_root(&self, n: u32) -> Option<Self>
Nth root of a PreciseDecimal
Trait Implementations§
Source§impl Add<Decimal> for PreciseDecimal
impl Add<Decimal> for PreciseDecimal
Source§impl Add<I192> for PreciseDecimal
impl Add<I192> for PreciseDecimal
Source§impl Add<I256> for PreciseDecimal
impl Add<I256> for PreciseDecimal
Source§impl Add<I320> for PreciseDecimal
impl Add<I320> for PreciseDecimal
Source§impl Add<I448> for PreciseDecimal
impl Add<I448> for PreciseDecimal
Source§impl Add<I512> for PreciseDecimal
impl Add<I512> for PreciseDecimal
Source§impl Add<PreciseDecimal> for Decimal
impl Add<PreciseDecimal> for Decimal
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for I192
impl Add<PreciseDecimal> for I192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for I256
impl Add<PreciseDecimal> for I256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for I320
impl Add<PreciseDecimal> for I320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for I448
impl Add<PreciseDecimal> for I448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for I512
impl Add<PreciseDecimal> for I512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for U192
impl Add<PreciseDecimal> for U192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for U256
impl Add<PreciseDecimal> for U256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for U320
impl Add<PreciseDecimal> for U320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for U448
impl Add<PreciseDecimal> for U448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for U512
impl Add<PreciseDecimal> for U512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for i128
impl Add<PreciseDecimal> for i128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for i16
impl Add<PreciseDecimal> for i16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for i32
impl Add<PreciseDecimal> for i32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for i64
impl Add<PreciseDecimal> for i64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for i8
impl Add<PreciseDecimal> for i8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for isize
impl Add<PreciseDecimal> for isize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for u128
impl Add<PreciseDecimal> for u128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for u16
impl Add<PreciseDecimal> for u16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for u32
impl Add<PreciseDecimal> for u32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for u64
impl Add<PreciseDecimal> for u64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for u8
impl Add<PreciseDecimal> for u8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<PreciseDecimal> for usize
impl Add<PreciseDecimal> for usize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
+
operator.Source§impl Add<U192> for PreciseDecimal
impl Add<U192> for PreciseDecimal
Source§impl Add<U256> for PreciseDecimal
impl Add<U256> for PreciseDecimal
Source§impl Add<U320> for PreciseDecimal
impl Add<U320> for PreciseDecimal
Source§impl Add<U448> for PreciseDecimal
impl Add<U448> for PreciseDecimal
Source§impl Add<U512> for PreciseDecimal
impl Add<U512> for PreciseDecimal
Source§impl Add<i128> for PreciseDecimal
impl Add<i128> for PreciseDecimal
Source§impl Add<i16> for PreciseDecimal
impl Add<i16> for PreciseDecimal
Source§impl Add<i32> for PreciseDecimal
impl Add<i32> for PreciseDecimal
Source§impl Add<i64> for PreciseDecimal
impl Add<i64> for PreciseDecimal
Source§impl Add<i8> for PreciseDecimal
impl Add<i8> for PreciseDecimal
Source§impl Add<isize> for PreciseDecimal
impl Add<isize> for PreciseDecimal
Source§impl Add<u128> for PreciseDecimal
impl Add<u128> for PreciseDecimal
Source§impl Add<u16> for PreciseDecimal
impl Add<u16> for PreciseDecimal
Source§impl Add<u32> for PreciseDecimal
impl Add<u32> for PreciseDecimal
Source§impl Add<u64> for PreciseDecimal
impl Add<u64> for PreciseDecimal
Source§impl Add<u8> for PreciseDecimal
impl Add<u8> for PreciseDecimal
Source§impl Add<usize> for PreciseDecimal
impl Add<usize> for PreciseDecimal
Source§impl Add for PreciseDecimal
impl Add for PreciseDecimal
Source§impl AddAssign<Decimal> for PreciseDecimal
impl AddAssign<Decimal> for PreciseDecimal
Source§fn add_assign(&mut self, other: Decimal)
fn add_assign(&mut self, other: Decimal)
+=
operation. Read moreSource§impl AddAssign<I192> for PreciseDecimal
impl AddAssign<I192> for PreciseDecimal
Source§fn add_assign(&mut self, other: I192)
fn add_assign(&mut self, other: I192)
+=
operation. Read moreSource§impl AddAssign<I256> for PreciseDecimal
impl AddAssign<I256> for PreciseDecimal
Source§fn add_assign(&mut self, other: I256)
fn add_assign(&mut self, other: I256)
+=
operation. Read moreSource§impl AddAssign<I320> for PreciseDecimal
impl AddAssign<I320> for PreciseDecimal
Source§fn add_assign(&mut self, other: I320)
fn add_assign(&mut self, other: I320)
+=
operation. Read moreSource§impl AddAssign<I448> for PreciseDecimal
impl AddAssign<I448> for PreciseDecimal
Source§fn add_assign(&mut self, other: I448)
fn add_assign(&mut self, other: I448)
+=
operation. Read moreSource§impl AddAssign<I512> for PreciseDecimal
impl AddAssign<I512> for PreciseDecimal
Source§fn add_assign(&mut self, other: I512)
fn add_assign(&mut self, other: I512)
+=
operation. Read moreSource§impl AddAssign<U192> for PreciseDecimal
impl AddAssign<U192> for PreciseDecimal
Source§fn add_assign(&mut self, other: U192)
fn add_assign(&mut self, other: U192)
+=
operation. Read moreSource§impl AddAssign<U256> for PreciseDecimal
impl AddAssign<U256> for PreciseDecimal
Source§fn add_assign(&mut self, other: U256)
fn add_assign(&mut self, other: U256)
+=
operation. Read moreSource§impl AddAssign<U320> for PreciseDecimal
impl AddAssign<U320> for PreciseDecimal
Source§fn add_assign(&mut self, other: U320)
fn add_assign(&mut self, other: U320)
+=
operation. Read moreSource§impl AddAssign<U448> for PreciseDecimal
impl AddAssign<U448> for PreciseDecimal
Source§fn add_assign(&mut self, other: U448)
fn add_assign(&mut self, other: U448)
+=
operation. Read moreSource§impl AddAssign<U512> for PreciseDecimal
impl AddAssign<U512> for PreciseDecimal
Source§fn add_assign(&mut self, other: U512)
fn add_assign(&mut self, other: U512)
+=
operation. Read moreSource§impl AddAssign<i128> for PreciseDecimal
impl AddAssign<i128> for PreciseDecimal
Source§fn add_assign(&mut self, other: i128)
fn add_assign(&mut self, other: i128)
+=
operation. Read moreSource§impl AddAssign<i16> for PreciseDecimal
impl AddAssign<i16> for PreciseDecimal
Source§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
+=
operation. Read moreSource§impl AddAssign<i32> for PreciseDecimal
impl AddAssign<i32> for PreciseDecimal
Source§fn add_assign(&mut self, other: i32)
fn add_assign(&mut self, other: i32)
+=
operation. Read moreSource§impl AddAssign<i64> for PreciseDecimal
impl AddAssign<i64> for PreciseDecimal
Source§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
+=
operation. Read moreSource§impl AddAssign<i8> for PreciseDecimal
impl AddAssign<i8> for PreciseDecimal
Source§fn add_assign(&mut self, other: i8)
fn add_assign(&mut self, other: i8)
+=
operation. Read moreSource§impl AddAssign<isize> for PreciseDecimal
impl AddAssign<isize> for PreciseDecimal
Source§fn add_assign(&mut self, other: isize)
fn add_assign(&mut self, other: isize)
+=
operation. Read moreSource§impl AddAssign<u128> for PreciseDecimal
impl AddAssign<u128> for PreciseDecimal
Source§fn add_assign(&mut self, other: u128)
fn add_assign(&mut self, other: u128)
+=
operation. Read moreSource§impl AddAssign<u16> for PreciseDecimal
impl AddAssign<u16> for PreciseDecimal
Source§fn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
+=
operation. Read moreSource§impl AddAssign<u32> for PreciseDecimal
impl AddAssign<u32> for PreciseDecimal
Source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
+=
operation. Read moreSource§impl AddAssign<u64> for PreciseDecimal
impl AddAssign<u64> for PreciseDecimal
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
+=
operation. Read moreSource§impl AddAssign<u8> for PreciseDecimal
impl AddAssign<u8> for PreciseDecimal
Source§fn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
+=
operation. Read moreSource§impl AddAssign<usize> for PreciseDecimal
impl AddAssign<usize> for PreciseDecimal
Source§fn add_assign(&mut self, other: usize)
fn add_assign(&mut self, other: usize)
+=
operation. Read moreSource§impl AddAssign for PreciseDecimal
impl AddAssign for PreciseDecimal
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moreSource§impl CheckedAdd<Decimal> for PreciseDecimal
impl CheckedAdd<Decimal> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: Decimal) -> Option<Self::Output>
Source§impl CheckedAdd<I192> for PreciseDecimal
impl CheckedAdd<I192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: I192) -> Option<Self::Output>
Source§impl CheckedAdd<I256> for PreciseDecimal
impl CheckedAdd<I256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: I256) -> Option<Self::Output>
Source§impl CheckedAdd<I320> for PreciseDecimal
impl CheckedAdd<I320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: I320) -> Option<Self::Output>
Source§impl CheckedAdd<I448> for PreciseDecimal
impl CheckedAdd<I448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: I448) -> Option<Self::Output>
Source§impl CheckedAdd<I512> for PreciseDecimal
impl CheckedAdd<I512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: I512) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for Decimal
impl CheckedAdd<PreciseDecimal> for Decimal
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for I192
impl CheckedAdd<PreciseDecimal> for I192
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for I256
impl CheckedAdd<PreciseDecimal> for I256
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for I320
impl CheckedAdd<PreciseDecimal> for I320
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for I448
impl CheckedAdd<PreciseDecimal> for I448
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for I512
impl CheckedAdd<PreciseDecimal> for I512
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for U192
impl CheckedAdd<PreciseDecimal> for U192
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for U256
impl CheckedAdd<PreciseDecimal> for U256
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for U320
impl CheckedAdd<PreciseDecimal> for U320
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for U448
impl CheckedAdd<PreciseDecimal> for U448
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<PreciseDecimal> for U512
impl CheckedAdd<PreciseDecimal> for U512
type Output = PreciseDecimal
fn checked_add(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedAdd<U192> for PreciseDecimal
impl CheckedAdd<U192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: U192) -> Option<Self::Output>
Source§impl CheckedAdd<U256> for PreciseDecimal
impl CheckedAdd<U256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: U256) -> Option<Self::Output>
Source§impl CheckedAdd<U320> for PreciseDecimal
impl CheckedAdd<U320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: U320) -> Option<Self::Output>
Source§impl CheckedAdd<U448> for PreciseDecimal
impl CheckedAdd<U448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: U448) -> Option<Self::Output>
Source§impl CheckedAdd<U512> for PreciseDecimal
impl CheckedAdd<U512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: U512) -> Option<Self::Output>
Source§impl CheckedAdd<i128> for PreciseDecimal
impl CheckedAdd<i128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: i128) -> Option<Self::Output>
Source§impl CheckedAdd<i16> for PreciseDecimal
impl CheckedAdd<i16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: i16) -> Option<Self::Output>
Source§impl CheckedAdd<i32> for PreciseDecimal
impl CheckedAdd<i32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: i32) -> Option<Self::Output>
Source§impl CheckedAdd<i64> for PreciseDecimal
impl CheckedAdd<i64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: i64) -> Option<Self::Output>
Source§impl CheckedAdd<i8> for PreciseDecimal
impl CheckedAdd<i8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: i8) -> Option<Self::Output>
Source§impl CheckedAdd<isize> for PreciseDecimal
impl CheckedAdd<isize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: isize) -> Option<Self::Output>
Source§impl CheckedAdd<u128> for PreciseDecimal
impl CheckedAdd<u128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: u128) -> Option<Self::Output>
Source§impl CheckedAdd<u16> for PreciseDecimal
impl CheckedAdd<u16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: u16) -> Option<Self::Output>
Source§impl CheckedAdd<u32> for PreciseDecimal
impl CheckedAdd<u32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: u32) -> Option<Self::Output>
Source§impl CheckedAdd<u64> for PreciseDecimal
impl CheckedAdd<u64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: u64) -> Option<Self::Output>
Source§impl CheckedAdd<u8> for PreciseDecimal
impl CheckedAdd<u8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: u8) -> Option<Self::Output>
Source§impl CheckedAdd<usize> for PreciseDecimal
impl CheckedAdd<usize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: usize) -> Option<Self::Output>
Source§impl CheckedAdd for PreciseDecimal
impl CheckedAdd for PreciseDecimal
type Output = PreciseDecimal
fn checked_add(self, other: Self) -> Option<Self::Output>
Source§impl CheckedDiv<Decimal> for PreciseDecimal
impl CheckedDiv<Decimal> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: Decimal) -> Option<Self::Output>
Source§impl CheckedDiv<I192> for PreciseDecimal
impl CheckedDiv<I192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: I192) -> Option<Self::Output>
Source§impl CheckedDiv<I256> for PreciseDecimal
impl CheckedDiv<I256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: I256) -> Option<Self::Output>
Source§impl CheckedDiv<I320> for PreciseDecimal
impl CheckedDiv<I320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: I320) -> Option<Self::Output>
Source§impl CheckedDiv<I448> for PreciseDecimal
impl CheckedDiv<I448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: I448) -> Option<Self::Output>
Source§impl CheckedDiv<I512> for PreciseDecimal
impl CheckedDiv<I512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: I512) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for Decimal
impl CheckedDiv<PreciseDecimal> for Decimal
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for I192
impl CheckedDiv<PreciseDecimal> for I192
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for I256
impl CheckedDiv<PreciseDecimal> for I256
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for I320
impl CheckedDiv<PreciseDecimal> for I320
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for I448
impl CheckedDiv<PreciseDecimal> for I448
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for I512
impl CheckedDiv<PreciseDecimal> for I512
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for U192
impl CheckedDiv<PreciseDecimal> for U192
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for U256
impl CheckedDiv<PreciseDecimal> for U256
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for U320
impl CheckedDiv<PreciseDecimal> for U320
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for U448
impl CheckedDiv<PreciseDecimal> for U448
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<PreciseDecimal> for U512
impl CheckedDiv<PreciseDecimal> for U512
type Output = PreciseDecimal
fn checked_div(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedDiv<U192> for PreciseDecimal
impl CheckedDiv<U192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: U192) -> Option<Self::Output>
Source§impl CheckedDiv<U256> for PreciseDecimal
impl CheckedDiv<U256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: U256) -> Option<Self::Output>
Source§impl CheckedDiv<U320> for PreciseDecimal
impl CheckedDiv<U320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: U320) -> Option<Self::Output>
Source§impl CheckedDiv<U448> for PreciseDecimal
impl CheckedDiv<U448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: U448) -> Option<Self::Output>
Source§impl CheckedDiv<U512> for PreciseDecimal
impl CheckedDiv<U512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: U512) -> Option<Self::Output>
Source§impl CheckedDiv<i128> for PreciseDecimal
impl CheckedDiv<i128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: i128) -> Option<Self::Output>
Source§impl CheckedDiv<i16> for PreciseDecimal
impl CheckedDiv<i16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: i16) -> Option<Self::Output>
Source§impl CheckedDiv<i32> for PreciseDecimal
impl CheckedDiv<i32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: i32) -> Option<Self::Output>
Source§impl CheckedDiv<i64> for PreciseDecimal
impl CheckedDiv<i64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: i64) -> Option<Self::Output>
Source§impl CheckedDiv<i8> for PreciseDecimal
impl CheckedDiv<i8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: i8) -> Option<Self::Output>
Source§impl CheckedDiv<isize> for PreciseDecimal
impl CheckedDiv<isize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: isize) -> Option<Self::Output>
Source§impl CheckedDiv<u128> for PreciseDecimal
impl CheckedDiv<u128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: u128) -> Option<Self::Output>
Source§impl CheckedDiv<u16> for PreciseDecimal
impl CheckedDiv<u16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: u16) -> Option<Self::Output>
Source§impl CheckedDiv<u32> for PreciseDecimal
impl CheckedDiv<u32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: u32) -> Option<Self::Output>
Source§impl CheckedDiv<u64> for PreciseDecimal
impl CheckedDiv<u64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: u64) -> Option<Self::Output>
Source§impl CheckedDiv<u8> for PreciseDecimal
impl CheckedDiv<u8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: u8) -> Option<Self::Output>
Source§impl CheckedDiv<usize> for PreciseDecimal
impl CheckedDiv<usize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: usize) -> Option<Self::Output>
Source§impl CheckedDiv for PreciseDecimal
impl CheckedDiv for PreciseDecimal
type Output = PreciseDecimal
fn checked_div(self, other: Self) -> Option<Self>
Source§impl CheckedMul<Decimal> for PreciseDecimal
impl CheckedMul<Decimal> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: Decimal) -> Option<Self::Output>
Source§impl CheckedMul<I192> for PreciseDecimal
impl CheckedMul<I192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: I192) -> Option<Self::Output>
Source§impl CheckedMul<I256> for PreciseDecimal
impl CheckedMul<I256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: I256) -> Option<Self::Output>
Source§impl CheckedMul<I320> for PreciseDecimal
impl CheckedMul<I320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: I320) -> Option<Self::Output>
Source§impl CheckedMul<I448> for PreciseDecimal
impl CheckedMul<I448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: I448) -> Option<Self::Output>
Source§impl CheckedMul<I512> for PreciseDecimal
impl CheckedMul<I512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: I512) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for Decimal
impl CheckedMul<PreciseDecimal> for Decimal
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for I192
impl CheckedMul<PreciseDecimal> for I192
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for I256
impl CheckedMul<PreciseDecimal> for I256
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for I320
impl CheckedMul<PreciseDecimal> for I320
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for I448
impl CheckedMul<PreciseDecimal> for I448
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for I512
impl CheckedMul<PreciseDecimal> for I512
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for U192
impl CheckedMul<PreciseDecimal> for U192
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for U256
impl CheckedMul<PreciseDecimal> for U256
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for U320
impl CheckedMul<PreciseDecimal> for U320
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for U448
impl CheckedMul<PreciseDecimal> for U448
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<PreciseDecimal> for U512
impl CheckedMul<PreciseDecimal> for U512
type Output = PreciseDecimal
fn checked_mul(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedMul<U192> for PreciseDecimal
impl CheckedMul<U192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: U192) -> Option<Self::Output>
Source§impl CheckedMul<U256> for PreciseDecimal
impl CheckedMul<U256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: U256) -> Option<Self::Output>
Source§impl CheckedMul<U320> for PreciseDecimal
impl CheckedMul<U320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: U320) -> Option<Self::Output>
Source§impl CheckedMul<U448> for PreciseDecimal
impl CheckedMul<U448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: U448) -> Option<Self::Output>
Source§impl CheckedMul<U512> for PreciseDecimal
impl CheckedMul<U512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: U512) -> Option<Self::Output>
Source§impl CheckedMul<i128> for PreciseDecimal
impl CheckedMul<i128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: i128) -> Option<Self::Output>
Source§impl CheckedMul<i16> for PreciseDecimal
impl CheckedMul<i16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: i16) -> Option<Self::Output>
Source§impl CheckedMul<i32> for PreciseDecimal
impl CheckedMul<i32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: i32) -> Option<Self::Output>
Source§impl CheckedMul<i64> for PreciseDecimal
impl CheckedMul<i64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: i64) -> Option<Self::Output>
Source§impl CheckedMul<i8> for PreciseDecimal
impl CheckedMul<i8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: i8) -> Option<Self::Output>
Source§impl CheckedMul<isize> for PreciseDecimal
impl CheckedMul<isize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: isize) -> Option<Self::Output>
Source§impl CheckedMul<u128> for PreciseDecimal
impl CheckedMul<u128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: u128) -> Option<Self::Output>
Source§impl CheckedMul<u16> for PreciseDecimal
impl CheckedMul<u16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: u16) -> Option<Self::Output>
Source§impl CheckedMul<u32> for PreciseDecimal
impl CheckedMul<u32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: u32) -> Option<Self::Output>
Source§impl CheckedMul<u64> for PreciseDecimal
impl CheckedMul<u64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: u64) -> Option<Self::Output>
Source§impl CheckedMul<u8> for PreciseDecimal
impl CheckedMul<u8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: u8) -> Option<Self::Output>
Source§impl CheckedMul<usize> for PreciseDecimal
impl CheckedMul<usize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: usize) -> Option<Self::Output>
Source§impl CheckedMul for PreciseDecimal
impl CheckedMul for PreciseDecimal
type Output = PreciseDecimal
fn checked_mul(self, other: Self) -> Option<Self>
Source§impl CheckedNeg for PreciseDecimal
impl CheckedNeg for PreciseDecimal
type Output = PreciseDecimal
fn checked_neg(self) -> Option<Self::Output>
Source§impl CheckedSub<Decimal> for PreciseDecimal
impl CheckedSub<Decimal> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: Decimal) -> Option<Self::Output>
Source§impl CheckedSub<I192> for PreciseDecimal
impl CheckedSub<I192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: I192) -> Option<Self::Output>
Source§impl CheckedSub<I256> for PreciseDecimal
impl CheckedSub<I256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: I256) -> Option<Self::Output>
Source§impl CheckedSub<I320> for PreciseDecimal
impl CheckedSub<I320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: I320) -> Option<Self::Output>
Source§impl CheckedSub<I448> for PreciseDecimal
impl CheckedSub<I448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: I448) -> Option<Self::Output>
Source§impl CheckedSub<I512> for PreciseDecimal
impl CheckedSub<I512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: I512) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for Decimal
impl CheckedSub<PreciseDecimal> for Decimal
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for I192
impl CheckedSub<PreciseDecimal> for I192
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for I256
impl CheckedSub<PreciseDecimal> for I256
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for I320
impl CheckedSub<PreciseDecimal> for I320
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for I448
impl CheckedSub<PreciseDecimal> for I448
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for I512
impl CheckedSub<PreciseDecimal> for I512
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for U192
impl CheckedSub<PreciseDecimal> for U192
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for U256
impl CheckedSub<PreciseDecimal> for U256
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for U320
impl CheckedSub<PreciseDecimal> for U320
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for U448
impl CheckedSub<PreciseDecimal> for U448
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<PreciseDecimal> for U512
impl CheckedSub<PreciseDecimal> for U512
type Output = PreciseDecimal
fn checked_sub(self, other: PreciseDecimal) -> Option<Self::Output>
Source§impl CheckedSub<U192> for PreciseDecimal
impl CheckedSub<U192> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: U192) -> Option<Self::Output>
Source§impl CheckedSub<U256> for PreciseDecimal
impl CheckedSub<U256> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: U256) -> Option<Self::Output>
Source§impl CheckedSub<U320> for PreciseDecimal
impl CheckedSub<U320> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: U320) -> Option<Self::Output>
Source§impl CheckedSub<U448> for PreciseDecimal
impl CheckedSub<U448> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: U448) -> Option<Self::Output>
Source§impl CheckedSub<U512> for PreciseDecimal
impl CheckedSub<U512> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: U512) -> Option<Self::Output>
Source§impl CheckedSub<i128> for PreciseDecimal
impl CheckedSub<i128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: i128) -> Option<Self::Output>
Source§impl CheckedSub<i16> for PreciseDecimal
impl CheckedSub<i16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: i16) -> Option<Self::Output>
Source§impl CheckedSub<i32> for PreciseDecimal
impl CheckedSub<i32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: i32) -> Option<Self::Output>
Source§impl CheckedSub<i64> for PreciseDecimal
impl CheckedSub<i64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: i64) -> Option<Self::Output>
Source§impl CheckedSub<i8> for PreciseDecimal
impl CheckedSub<i8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: i8) -> Option<Self::Output>
Source§impl CheckedSub<isize> for PreciseDecimal
impl CheckedSub<isize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: isize) -> Option<Self::Output>
Source§impl CheckedSub<u128> for PreciseDecimal
impl CheckedSub<u128> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: u128) -> Option<Self::Output>
Source§impl CheckedSub<u16> for PreciseDecimal
impl CheckedSub<u16> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: u16) -> Option<Self::Output>
Source§impl CheckedSub<u32> for PreciseDecimal
impl CheckedSub<u32> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: u32) -> Option<Self::Output>
Source§impl CheckedSub<u64> for PreciseDecimal
impl CheckedSub<u64> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: u64) -> Option<Self::Output>
Source§impl CheckedSub<u8> for PreciseDecimal
impl CheckedSub<u8> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: u8) -> Option<Self::Output>
Source§impl CheckedSub<usize> for PreciseDecimal
impl CheckedSub<usize> for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: usize) -> Option<Self::Output>
Source§impl CheckedSub for PreciseDecimal
impl CheckedSub for PreciseDecimal
type Output = PreciseDecimal
fn checked_sub(self, other: Self) -> Option<Self::Output>
Source§impl CheckedTruncate<Decimal> for PreciseDecimal
impl CheckedTruncate<Decimal> for PreciseDecimal
type Output = Decimal
fn checked_truncate(self, mode: RoundingMode) -> Option<Self::Output>
Source§impl Clone for PreciseDecimal
impl Clone for PreciseDecimal
Source§fn clone(&self) -> PreciseDecimal
fn clone(&self) -> PreciseDecimal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PreciseDecimal
impl Debug for PreciseDecimal
Source§impl<D: Decoder<ManifestCustomValueKind>> Decode<ManifestCustomValueKind, D> for PreciseDecimal
impl<D: Decoder<ManifestCustomValueKind>> Decode<ManifestCustomValueKind, D> for PreciseDecimal
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<ManifestCustomValueKind>,
) -> Result<Self, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ManifestCustomValueKind>, ) -> Result<Self, DecodeError>
Source§impl<D: Decoder<ScryptoCustomValueKind>> Decode<ScryptoCustomValueKind, D> for PreciseDecimal
impl<D: Decoder<ScryptoCustomValueKind>> Decode<ScryptoCustomValueKind, D> for PreciseDecimal
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<ScryptoCustomValueKind>,
) -> Result<Self, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ScryptoCustomValueKind>, ) -> Result<Self, DecodeError>
Source§impl Default for PreciseDecimal
impl Default for PreciseDecimal
Source§impl Describe<ScryptoCustomTypeKind> for PreciseDecimal
impl Describe<ScryptoCustomTypeKind> for PreciseDecimal
Source§const TYPE_ID: RustTypeId
const TYPE_ID: RustTypeId
TYPE_ID
should give a unique identifier for its SBOR schema type.
An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read moreSource§fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
Source§fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
get_local_type_data
, we need to ensure that the type and all of its own references
get added to the aggregator. Read moreSource§impl Display for PreciseDecimal
impl Display for PreciseDecimal
Source§impl Div<Decimal> for PreciseDecimal
impl Div<Decimal> for PreciseDecimal
Source§impl Div<I192> for PreciseDecimal
impl Div<I192> for PreciseDecimal
Source§impl Div<I256> for PreciseDecimal
impl Div<I256> for PreciseDecimal
Source§impl Div<I320> for PreciseDecimal
impl Div<I320> for PreciseDecimal
Source§impl Div<I448> for PreciseDecimal
impl Div<I448> for PreciseDecimal
Source§impl Div<I512> for PreciseDecimal
impl Div<I512> for PreciseDecimal
Source§impl Div<PreciseDecimal> for Decimal
impl Div<PreciseDecimal> for Decimal
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for I192
impl Div<PreciseDecimal> for I192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for I256
impl Div<PreciseDecimal> for I256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for I320
impl Div<PreciseDecimal> for I320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for I448
impl Div<PreciseDecimal> for I448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for I512
impl Div<PreciseDecimal> for I512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for U192
impl Div<PreciseDecimal> for U192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for U256
impl Div<PreciseDecimal> for U256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for U320
impl Div<PreciseDecimal> for U320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for U448
impl Div<PreciseDecimal> for U448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for U512
impl Div<PreciseDecimal> for U512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for i128
impl Div<PreciseDecimal> for i128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for i16
impl Div<PreciseDecimal> for i16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for i32
impl Div<PreciseDecimal> for i32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for i64
impl Div<PreciseDecimal> for i64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for i8
impl Div<PreciseDecimal> for i8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for isize
impl Div<PreciseDecimal> for isize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for u128
impl Div<PreciseDecimal> for u128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for u16
impl Div<PreciseDecimal> for u16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for u32
impl Div<PreciseDecimal> for u32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for u64
impl Div<PreciseDecimal> for u64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for u8
impl Div<PreciseDecimal> for u8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<PreciseDecimal> for usize
impl Div<PreciseDecimal> for usize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
/
operator.Source§impl Div<U192> for PreciseDecimal
impl Div<U192> for PreciseDecimal
Source§impl Div<U256> for PreciseDecimal
impl Div<U256> for PreciseDecimal
Source§impl Div<U320> for PreciseDecimal
impl Div<U320> for PreciseDecimal
Source§impl Div<U448> for PreciseDecimal
impl Div<U448> for PreciseDecimal
Source§impl Div<U512> for PreciseDecimal
impl Div<U512> for PreciseDecimal
Source§impl Div<i128> for PreciseDecimal
impl Div<i128> for PreciseDecimal
Source§impl Div<i16> for PreciseDecimal
impl Div<i16> for PreciseDecimal
Source§impl Div<i32> for PreciseDecimal
impl Div<i32> for PreciseDecimal
Source§impl Div<i64> for PreciseDecimal
impl Div<i64> for PreciseDecimal
Source§impl Div<i8> for PreciseDecimal
impl Div<i8> for PreciseDecimal
Source§impl Div<isize> for PreciseDecimal
impl Div<isize> for PreciseDecimal
Source§impl Div<u128> for PreciseDecimal
impl Div<u128> for PreciseDecimal
Source§impl Div<u16> for PreciseDecimal
impl Div<u16> for PreciseDecimal
Source§impl Div<u32> for PreciseDecimal
impl Div<u32> for PreciseDecimal
Source§impl Div<u64> for PreciseDecimal
impl Div<u64> for PreciseDecimal
Source§impl Div<u8> for PreciseDecimal
impl Div<u8> for PreciseDecimal
Source§impl Div<usize> for PreciseDecimal
impl Div<usize> for PreciseDecimal
Source§impl Div for PreciseDecimal
impl Div for PreciseDecimal
Source§impl DivAssign<Decimal> for PreciseDecimal
impl DivAssign<Decimal> for PreciseDecimal
Source§fn div_assign(&mut self, other: Decimal)
fn div_assign(&mut self, other: Decimal)
/=
operation. Read moreSource§impl DivAssign<I192> for PreciseDecimal
impl DivAssign<I192> for PreciseDecimal
Source§fn div_assign(&mut self, other: I192)
fn div_assign(&mut self, other: I192)
/=
operation. Read moreSource§impl DivAssign<I256> for PreciseDecimal
impl DivAssign<I256> for PreciseDecimal
Source§fn div_assign(&mut self, other: I256)
fn div_assign(&mut self, other: I256)
/=
operation. Read moreSource§impl DivAssign<I320> for PreciseDecimal
impl DivAssign<I320> for PreciseDecimal
Source§fn div_assign(&mut self, other: I320)
fn div_assign(&mut self, other: I320)
/=
operation. Read moreSource§impl DivAssign<I448> for PreciseDecimal
impl DivAssign<I448> for PreciseDecimal
Source§fn div_assign(&mut self, other: I448)
fn div_assign(&mut self, other: I448)
/=
operation. Read moreSource§impl DivAssign<I512> for PreciseDecimal
impl DivAssign<I512> for PreciseDecimal
Source§fn div_assign(&mut self, other: I512)
fn div_assign(&mut self, other: I512)
/=
operation. Read moreSource§impl DivAssign<U192> for PreciseDecimal
impl DivAssign<U192> for PreciseDecimal
Source§fn div_assign(&mut self, other: U192)
fn div_assign(&mut self, other: U192)
/=
operation. Read moreSource§impl DivAssign<U256> for PreciseDecimal
impl DivAssign<U256> for PreciseDecimal
Source§fn div_assign(&mut self, other: U256)
fn div_assign(&mut self, other: U256)
/=
operation. Read moreSource§impl DivAssign<U320> for PreciseDecimal
impl DivAssign<U320> for PreciseDecimal
Source§fn div_assign(&mut self, other: U320)
fn div_assign(&mut self, other: U320)
/=
operation. Read moreSource§impl DivAssign<U448> for PreciseDecimal
impl DivAssign<U448> for PreciseDecimal
Source§fn div_assign(&mut self, other: U448)
fn div_assign(&mut self, other: U448)
/=
operation. Read moreSource§impl DivAssign<U512> for PreciseDecimal
impl DivAssign<U512> for PreciseDecimal
Source§fn div_assign(&mut self, other: U512)
fn div_assign(&mut self, other: U512)
/=
operation. Read moreSource§impl DivAssign<i128> for PreciseDecimal
impl DivAssign<i128> for PreciseDecimal
Source§fn div_assign(&mut self, other: i128)
fn div_assign(&mut self, other: i128)
/=
operation. Read moreSource§impl DivAssign<i16> for PreciseDecimal
impl DivAssign<i16> for PreciseDecimal
Source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
/=
operation. Read moreSource§impl DivAssign<i32> for PreciseDecimal
impl DivAssign<i32> for PreciseDecimal
Source§fn div_assign(&mut self, other: i32)
fn div_assign(&mut self, other: i32)
/=
operation. Read moreSource§impl DivAssign<i64> for PreciseDecimal
impl DivAssign<i64> for PreciseDecimal
Source§fn div_assign(&mut self, other: i64)
fn div_assign(&mut self, other: i64)
/=
operation. Read moreSource§impl DivAssign<i8> for PreciseDecimal
impl DivAssign<i8> for PreciseDecimal
Source§fn div_assign(&mut self, other: i8)
fn div_assign(&mut self, other: i8)
/=
operation. Read moreSource§impl DivAssign<isize> for PreciseDecimal
impl DivAssign<isize> for PreciseDecimal
Source§fn div_assign(&mut self, other: isize)
fn div_assign(&mut self, other: isize)
/=
operation. Read moreSource§impl DivAssign<u128> for PreciseDecimal
impl DivAssign<u128> for PreciseDecimal
Source§fn div_assign(&mut self, other: u128)
fn div_assign(&mut self, other: u128)
/=
operation. Read moreSource§impl DivAssign<u16> for PreciseDecimal
impl DivAssign<u16> for PreciseDecimal
Source§fn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
/=
operation. Read moreSource§impl DivAssign<u32> for PreciseDecimal
impl DivAssign<u32> for PreciseDecimal
Source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
/=
operation. Read moreSource§impl DivAssign<u64> for PreciseDecimal
impl DivAssign<u64> for PreciseDecimal
Source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
/=
operation. Read moreSource§impl DivAssign<u8> for PreciseDecimal
impl DivAssign<u8> for PreciseDecimal
Source§fn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
/=
operation. Read moreSource§impl DivAssign<usize> for PreciseDecimal
impl DivAssign<usize> for PreciseDecimal
Source§fn div_assign(&mut self, other: usize)
fn div_assign(&mut self, other: usize)
/=
operation. Read moreSource§impl DivAssign for PreciseDecimal
impl DivAssign for PreciseDecimal
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
/=
operation. Read moreSource§impl<E: Encoder<ManifestCustomValueKind>> Encode<ManifestCustomValueKind, E> for PreciseDecimal
impl<E: Encoder<ManifestCustomValueKind>> Encode<ManifestCustomValueKind, E> for PreciseDecimal
Source§fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
Source§fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
Source§impl<E: Encoder<ScryptoCustomValueKind>> Encode<ScryptoCustomValueKind, E> for PreciseDecimal
impl<E: Encoder<ScryptoCustomValueKind>> Encode<ScryptoCustomValueKind, E> for PreciseDecimal
Source§fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
Source§fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
Source§impl From<Decimal> for PreciseDecimal
impl From<Decimal> for PreciseDecimal
Source§impl From<bool> for PreciseDecimal
impl From<bool> for PreciseDecimal
Source§impl From<i128> for PreciseDecimal
impl From<i128> for PreciseDecimal
Source§impl From<i16> for PreciseDecimal
impl From<i16> for PreciseDecimal
Source§impl From<i32> for PreciseDecimal
impl From<i32> for PreciseDecimal
Source§impl From<i64> for PreciseDecimal
impl From<i64> for PreciseDecimal
Source§impl From<i8> for PreciseDecimal
impl From<i8> for PreciseDecimal
Source§impl From<isize> for PreciseDecimal
impl From<isize> for PreciseDecimal
Source§impl From<u128> for PreciseDecimal
impl From<u128> for PreciseDecimal
Source§impl From<u16> for PreciseDecimal
impl From<u16> for PreciseDecimal
Source§impl From<u32> for PreciseDecimal
impl From<u32> for PreciseDecimal
Source§impl From<u64> for PreciseDecimal
impl From<u64> for PreciseDecimal
Source§impl From<u8> for PreciseDecimal
impl From<u8> for PreciseDecimal
Source§impl From<usize> for PreciseDecimal
impl From<usize> for PreciseDecimal
Source§impl FromStr for PreciseDecimal
impl FromStr for PreciseDecimal
Source§impl Hash for PreciseDecimal
impl Hash for PreciseDecimal
Source§impl Mul<Decimal> for PreciseDecimal
impl Mul<Decimal> for PreciseDecimal
Source§impl Mul<I192> for PreciseDecimal
impl Mul<I192> for PreciseDecimal
Source§impl Mul<I256> for PreciseDecimal
impl Mul<I256> for PreciseDecimal
Source§impl Mul<I320> for PreciseDecimal
impl Mul<I320> for PreciseDecimal
Source§impl Mul<I448> for PreciseDecimal
impl Mul<I448> for PreciseDecimal
Source§impl Mul<I512> for PreciseDecimal
impl Mul<I512> for PreciseDecimal
Source§impl Mul<PreciseDecimal> for Decimal
impl Mul<PreciseDecimal> for Decimal
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for I192
impl Mul<PreciseDecimal> for I192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for I256
impl Mul<PreciseDecimal> for I256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for I320
impl Mul<PreciseDecimal> for I320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for I448
impl Mul<PreciseDecimal> for I448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for I512
impl Mul<PreciseDecimal> for I512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for U192
impl Mul<PreciseDecimal> for U192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for U256
impl Mul<PreciseDecimal> for U256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for U320
impl Mul<PreciseDecimal> for U320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for U448
impl Mul<PreciseDecimal> for U448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for U512
impl Mul<PreciseDecimal> for U512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for i128
impl Mul<PreciseDecimal> for i128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for i16
impl Mul<PreciseDecimal> for i16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for i32
impl Mul<PreciseDecimal> for i32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for i64
impl Mul<PreciseDecimal> for i64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for i8
impl Mul<PreciseDecimal> for i8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for isize
impl Mul<PreciseDecimal> for isize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for u128
impl Mul<PreciseDecimal> for u128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for u16
impl Mul<PreciseDecimal> for u16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for u32
impl Mul<PreciseDecimal> for u32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for u64
impl Mul<PreciseDecimal> for u64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for u8
impl Mul<PreciseDecimal> for u8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<PreciseDecimal> for usize
impl Mul<PreciseDecimal> for usize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
*
operator.Source§impl Mul<U192> for PreciseDecimal
impl Mul<U192> for PreciseDecimal
Source§impl Mul<U256> for PreciseDecimal
impl Mul<U256> for PreciseDecimal
Source§impl Mul<U320> for PreciseDecimal
impl Mul<U320> for PreciseDecimal
Source§impl Mul<U448> for PreciseDecimal
impl Mul<U448> for PreciseDecimal
Source§impl Mul<U512> for PreciseDecimal
impl Mul<U512> for PreciseDecimal
Source§impl Mul<i128> for PreciseDecimal
impl Mul<i128> for PreciseDecimal
Source§impl Mul<i16> for PreciseDecimal
impl Mul<i16> for PreciseDecimal
Source§impl Mul<i32> for PreciseDecimal
impl Mul<i32> for PreciseDecimal
Source§impl Mul<i64> for PreciseDecimal
impl Mul<i64> for PreciseDecimal
Source§impl Mul<i8> for PreciseDecimal
impl Mul<i8> for PreciseDecimal
Source§impl Mul<isize> for PreciseDecimal
impl Mul<isize> for PreciseDecimal
Source§impl Mul<u128> for PreciseDecimal
impl Mul<u128> for PreciseDecimal
Source§impl Mul<u16> for PreciseDecimal
impl Mul<u16> for PreciseDecimal
Source§impl Mul<u32> for PreciseDecimal
impl Mul<u32> for PreciseDecimal
Source§impl Mul<u64> for PreciseDecimal
impl Mul<u64> for PreciseDecimal
Source§impl Mul<u8> for PreciseDecimal
impl Mul<u8> for PreciseDecimal
Source§impl Mul<usize> for PreciseDecimal
impl Mul<usize> for PreciseDecimal
Source§impl Mul for PreciseDecimal
impl Mul for PreciseDecimal
Source§impl MulAssign<Decimal> for PreciseDecimal
impl MulAssign<Decimal> for PreciseDecimal
Source§fn mul_assign(&mut self, other: Decimal)
fn mul_assign(&mut self, other: Decimal)
*=
operation. Read moreSource§impl MulAssign<I192> for PreciseDecimal
impl MulAssign<I192> for PreciseDecimal
Source§fn mul_assign(&mut self, other: I192)
fn mul_assign(&mut self, other: I192)
*=
operation. Read moreSource§impl MulAssign<I256> for PreciseDecimal
impl MulAssign<I256> for PreciseDecimal
Source§fn mul_assign(&mut self, other: I256)
fn mul_assign(&mut self, other: I256)
*=
operation. Read moreSource§impl MulAssign<I320> for PreciseDecimal
impl MulAssign<I320> for PreciseDecimal
Source§fn mul_assign(&mut self, other: I320)
fn mul_assign(&mut self, other: I320)
*=
operation. Read moreSource§impl MulAssign<I448> for PreciseDecimal
impl MulAssign<I448> for PreciseDecimal
Source§fn mul_assign(&mut self, other: I448)
fn mul_assign(&mut self, other: I448)
*=
operation. Read moreSource§impl MulAssign<I512> for PreciseDecimal
impl MulAssign<I512> for PreciseDecimal
Source§fn mul_assign(&mut self, other: I512)
fn mul_assign(&mut self, other: I512)
*=
operation. Read moreSource§impl MulAssign<U192> for PreciseDecimal
impl MulAssign<U192> for PreciseDecimal
Source§fn mul_assign(&mut self, other: U192)
fn mul_assign(&mut self, other: U192)
*=
operation. Read moreSource§impl MulAssign<U256> for PreciseDecimal
impl MulAssign<U256> for PreciseDecimal
Source§fn mul_assign(&mut self, other: U256)
fn mul_assign(&mut self, other: U256)
*=
operation. Read moreSource§impl MulAssign<U320> for PreciseDecimal
impl MulAssign<U320> for PreciseDecimal
Source§fn mul_assign(&mut self, other: U320)
fn mul_assign(&mut self, other: U320)
*=
operation. Read moreSource§impl MulAssign<U448> for PreciseDecimal
impl MulAssign<U448> for PreciseDecimal
Source§fn mul_assign(&mut self, other: U448)
fn mul_assign(&mut self, other: U448)
*=
operation. Read moreSource§impl MulAssign<U512> for PreciseDecimal
impl MulAssign<U512> for PreciseDecimal
Source§fn mul_assign(&mut self, other: U512)
fn mul_assign(&mut self, other: U512)
*=
operation. Read moreSource§impl MulAssign<i128> for PreciseDecimal
impl MulAssign<i128> for PreciseDecimal
Source§fn mul_assign(&mut self, other: i128)
fn mul_assign(&mut self, other: i128)
*=
operation. Read moreSource§impl MulAssign<i16> for PreciseDecimal
impl MulAssign<i16> for PreciseDecimal
Source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
*=
operation. Read moreSource§impl MulAssign<i32> for PreciseDecimal
impl MulAssign<i32> for PreciseDecimal
Source§fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
*=
operation. Read moreSource§impl MulAssign<i64> for PreciseDecimal
impl MulAssign<i64> for PreciseDecimal
Source§fn mul_assign(&mut self, other: i64)
fn mul_assign(&mut self, other: i64)
*=
operation. Read moreSource§impl MulAssign<i8> for PreciseDecimal
impl MulAssign<i8> for PreciseDecimal
Source§fn mul_assign(&mut self, other: i8)
fn mul_assign(&mut self, other: i8)
*=
operation. Read moreSource§impl MulAssign<isize> for PreciseDecimal
impl MulAssign<isize> for PreciseDecimal
Source§fn mul_assign(&mut self, other: isize)
fn mul_assign(&mut self, other: isize)
*=
operation. Read moreSource§impl MulAssign<u128> for PreciseDecimal
impl MulAssign<u128> for PreciseDecimal
Source§fn mul_assign(&mut self, other: u128)
fn mul_assign(&mut self, other: u128)
*=
operation. Read moreSource§impl MulAssign<u16> for PreciseDecimal
impl MulAssign<u16> for PreciseDecimal
Source§fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
*=
operation. Read moreSource§impl MulAssign<u32> for PreciseDecimal
impl MulAssign<u32> for PreciseDecimal
Source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
*=
operation. Read moreSource§impl MulAssign<u64> for PreciseDecimal
impl MulAssign<u64> for PreciseDecimal
Source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
*=
operation. Read moreSource§impl MulAssign<u8> for PreciseDecimal
impl MulAssign<u8> for PreciseDecimal
Source§fn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
*=
operation. Read moreSource§impl MulAssign<usize> for PreciseDecimal
impl MulAssign<usize> for PreciseDecimal
Source§fn mul_assign(&mut self, other: usize)
fn mul_assign(&mut self, other: usize)
*=
operation. Read moreSource§impl MulAssign for PreciseDecimal
impl MulAssign for PreciseDecimal
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
*=
operation. Read moreSource§impl Neg for PreciseDecimal
impl Neg for PreciseDecimal
Source§impl Ord for PreciseDecimal
impl Ord for PreciseDecimal
Source§fn cmp(&self, other: &PreciseDecimal) -> Ordering
fn cmp(&self, other: &PreciseDecimal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PreciseDecimal
impl PartialEq for PreciseDecimal
Source§impl PartialOrd for PreciseDecimal
impl PartialOrd for PreciseDecimal
Source§impl<T: TryInto<PreciseDecimal, Error = E>, E: Debug> ResolveFrom<T> for PreciseDecimal
impl<T: TryInto<PreciseDecimal, Error = E>, E: Debug> ResolveFrom<T> for PreciseDecimal
fn resolve_from(value: T) -> PreciseDecimal
Source§impl Sub<Decimal> for PreciseDecimal
impl Sub<Decimal> for PreciseDecimal
Source§impl Sub<I192> for PreciseDecimal
impl Sub<I192> for PreciseDecimal
Source§impl Sub<I256> for PreciseDecimal
impl Sub<I256> for PreciseDecimal
Source§impl Sub<I320> for PreciseDecimal
impl Sub<I320> for PreciseDecimal
Source§impl Sub<I448> for PreciseDecimal
impl Sub<I448> for PreciseDecimal
Source§impl Sub<I512> for PreciseDecimal
impl Sub<I512> for PreciseDecimal
Source§impl Sub<PreciseDecimal> for Decimal
impl Sub<PreciseDecimal> for Decimal
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for I192
impl Sub<PreciseDecimal> for I192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for I256
impl Sub<PreciseDecimal> for I256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for I320
impl Sub<PreciseDecimal> for I320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for I448
impl Sub<PreciseDecimal> for I448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for I512
impl Sub<PreciseDecimal> for I512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for U192
impl Sub<PreciseDecimal> for U192
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for U256
impl Sub<PreciseDecimal> for U256
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for U320
impl Sub<PreciseDecimal> for U320
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for U448
impl Sub<PreciseDecimal> for U448
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for U512
impl Sub<PreciseDecimal> for U512
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for i128
impl Sub<PreciseDecimal> for i128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for i16
impl Sub<PreciseDecimal> for i16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for i32
impl Sub<PreciseDecimal> for i32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for i64
impl Sub<PreciseDecimal> for i64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for i8
impl Sub<PreciseDecimal> for i8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for isize
impl Sub<PreciseDecimal> for isize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for u128
impl Sub<PreciseDecimal> for u128
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for u16
impl Sub<PreciseDecimal> for u16
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for u32
impl Sub<PreciseDecimal> for u32
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for u64
impl Sub<PreciseDecimal> for u64
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for u8
impl Sub<PreciseDecimal> for u8
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<PreciseDecimal> for usize
impl Sub<PreciseDecimal> for usize
Source§type Output = PreciseDecimal
type Output = PreciseDecimal
-
operator.Source§impl Sub<U192> for PreciseDecimal
impl Sub<U192> for PreciseDecimal
Source§impl Sub<U256> for PreciseDecimal
impl Sub<U256> for PreciseDecimal
Source§impl Sub<U320> for PreciseDecimal
impl Sub<U320> for PreciseDecimal
Source§impl Sub<U448> for PreciseDecimal
impl Sub<U448> for PreciseDecimal
Source§impl Sub<U512> for PreciseDecimal
impl Sub<U512> for PreciseDecimal
Source§impl Sub<i128> for PreciseDecimal
impl Sub<i128> for PreciseDecimal
Source§impl Sub<i16> for PreciseDecimal
impl Sub<i16> for PreciseDecimal
Source§impl Sub<i32> for PreciseDecimal
impl Sub<i32> for PreciseDecimal
Source§impl Sub<i64> for PreciseDecimal
impl Sub<i64> for PreciseDecimal
Source§impl Sub<i8> for PreciseDecimal
impl Sub<i8> for PreciseDecimal
Source§impl Sub<isize> for PreciseDecimal
impl Sub<isize> for PreciseDecimal
Source§impl Sub<u128> for PreciseDecimal
impl Sub<u128> for PreciseDecimal
Source§impl Sub<u16> for PreciseDecimal
impl Sub<u16> for PreciseDecimal
Source§impl Sub<u32> for PreciseDecimal
impl Sub<u32> for PreciseDecimal
Source§impl Sub<u64> for PreciseDecimal
impl Sub<u64> for PreciseDecimal
Source§impl Sub<u8> for PreciseDecimal
impl Sub<u8> for PreciseDecimal
Source§impl Sub<usize> for PreciseDecimal
impl Sub<usize> for PreciseDecimal
Source§impl Sub for PreciseDecimal
impl Sub for PreciseDecimal
Source§impl SubAssign<Decimal> for PreciseDecimal
impl SubAssign<Decimal> for PreciseDecimal
Source§fn sub_assign(&mut self, other: Decimal)
fn sub_assign(&mut self, other: Decimal)
-=
operation. Read moreSource§impl SubAssign<I192> for PreciseDecimal
impl SubAssign<I192> for PreciseDecimal
Source§fn sub_assign(&mut self, other: I192)
fn sub_assign(&mut self, other: I192)
-=
operation. Read moreSource§impl SubAssign<I256> for PreciseDecimal
impl SubAssign<I256> for PreciseDecimal
Source§fn sub_assign(&mut self, other: I256)
fn sub_assign(&mut self, other: I256)
-=
operation. Read moreSource§impl SubAssign<I320> for PreciseDecimal
impl SubAssign<I320> for PreciseDecimal
Source§fn sub_assign(&mut self, other: I320)
fn sub_assign(&mut self, other: I320)
-=
operation. Read moreSource§impl SubAssign<I448> for PreciseDecimal
impl SubAssign<I448> for PreciseDecimal
Source§fn sub_assign(&mut self, other: I448)
fn sub_assign(&mut self, other: I448)
-=
operation. Read moreSource§impl SubAssign<I512> for PreciseDecimal
impl SubAssign<I512> for PreciseDecimal
Source§fn sub_assign(&mut self, other: I512)
fn sub_assign(&mut self, other: I512)
-=
operation. Read moreSource§impl SubAssign<U192> for PreciseDecimal
impl SubAssign<U192> for PreciseDecimal
Source§fn sub_assign(&mut self, other: U192)
fn sub_assign(&mut self, other: U192)
-=
operation. Read moreSource§impl SubAssign<U256> for PreciseDecimal
impl SubAssign<U256> for PreciseDecimal
Source§fn sub_assign(&mut self, other: U256)
fn sub_assign(&mut self, other: U256)
-=
operation. Read moreSource§impl SubAssign<U320> for PreciseDecimal
impl SubAssign<U320> for PreciseDecimal
Source§fn sub_assign(&mut self, other: U320)
fn sub_assign(&mut self, other: U320)
-=
operation. Read moreSource§impl SubAssign<U448> for PreciseDecimal
impl SubAssign<U448> for PreciseDecimal
Source§fn sub_assign(&mut self, other: U448)
fn sub_assign(&mut self, other: U448)
-=
operation. Read moreSource§impl SubAssign<U512> for PreciseDecimal
impl SubAssign<U512> for PreciseDecimal
Source§fn sub_assign(&mut self, other: U512)
fn sub_assign(&mut self, other: U512)
-=
operation. Read moreSource§impl SubAssign<i128> for PreciseDecimal
impl SubAssign<i128> for PreciseDecimal
Source§fn sub_assign(&mut self, other: i128)
fn sub_assign(&mut self, other: i128)
-=
operation. Read moreSource§impl SubAssign<i16> for PreciseDecimal
impl SubAssign<i16> for PreciseDecimal
Source§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
-=
operation. Read moreSource§impl SubAssign<i32> for PreciseDecimal
impl SubAssign<i32> for PreciseDecimal
Source§fn sub_assign(&mut self, other: i32)
fn sub_assign(&mut self, other: i32)
-=
operation. Read moreSource§impl SubAssign<i64> for PreciseDecimal
impl SubAssign<i64> for PreciseDecimal
Source§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
-=
operation. Read moreSource§impl SubAssign<i8> for PreciseDecimal
impl SubAssign<i8> for PreciseDecimal
Source§fn sub_assign(&mut self, other: i8)
fn sub_assign(&mut self, other: i8)
-=
operation. Read moreSource§impl SubAssign<isize> for PreciseDecimal
impl SubAssign<isize> for PreciseDecimal
Source§fn sub_assign(&mut self, other: isize)
fn sub_assign(&mut self, other: isize)
-=
operation. Read moreSource§impl SubAssign<u128> for PreciseDecimal
impl SubAssign<u128> for PreciseDecimal
Source§fn sub_assign(&mut self, other: u128)
fn sub_assign(&mut self, other: u128)
-=
operation. Read moreSource§impl SubAssign<u16> for PreciseDecimal
impl SubAssign<u16> for PreciseDecimal
Source§fn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
-=
operation. Read moreSource§impl SubAssign<u32> for PreciseDecimal
impl SubAssign<u32> for PreciseDecimal
Source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
-=
operation. Read moreSource§impl SubAssign<u64> for PreciseDecimal
impl SubAssign<u64> for PreciseDecimal
Source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
-=
operation. Read moreSource§impl SubAssign<u8> for PreciseDecimal
impl SubAssign<u8> for PreciseDecimal
Source§fn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
-=
operation. Read moreSource§impl SubAssign<usize> for PreciseDecimal
impl SubAssign<usize> for PreciseDecimal
Source§fn sub_assign(&mut self, other: usize)
fn sub_assign(&mut self, other: usize)
-=
operation. Read moreSource§impl SubAssign for PreciseDecimal
impl SubAssign for PreciseDecimal
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moreSource§impl TryFrom<&[u8]> for PreciseDecimal
impl TryFrom<&[u8]> for PreciseDecimal
Source§impl TryFrom<&PreciseDecimal> for i128
impl TryFrom<&PreciseDecimal> for i128
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for i16
impl TryFrom<&PreciseDecimal> for i16
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for i32
impl TryFrom<&PreciseDecimal> for i32
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for i64
impl TryFrom<&PreciseDecimal> for i64
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for i8
impl TryFrom<&PreciseDecimal> for i8
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for isize
impl TryFrom<&PreciseDecimal> for isize
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for u128
impl TryFrom<&PreciseDecimal> for u128
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for u16
impl TryFrom<&PreciseDecimal> for u16
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for u32
impl TryFrom<&PreciseDecimal> for u32
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for u64
impl TryFrom<&PreciseDecimal> for u64
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for u8
impl TryFrom<&PreciseDecimal> for u8
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&PreciseDecimal> for usize
impl TryFrom<&PreciseDecimal> for usize
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<&str> for PreciseDecimal
impl TryFrom<&str> for PreciseDecimal
Source§impl TryFrom<I192> for PreciseDecimal
impl TryFrom<I192> for PreciseDecimal
Source§impl TryFrom<I256> for PreciseDecimal
impl TryFrom<I256> for PreciseDecimal
Source§impl TryFrom<I320> for PreciseDecimal
impl TryFrom<I320> for PreciseDecimal
Source§impl TryFrom<I384> for PreciseDecimal
impl TryFrom<I384> for PreciseDecimal
Source§impl TryFrom<I448> for PreciseDecimal
impl TryFrom<I448> for PreciseDecimal
Source§impl TryFrom<I512> for PreciseDecimal
impl TryFrom<I512> for PreciseDecimal
Source§impl TryFrom<PreciseDecimal> for Decimal
impl TryFrom<PreciseDecimal> for Decimal
Source§type Error = ParseDecimalError
type Error = ParseDecimalError
Source§impl TryFrom<PreciseDecimal> for i128
impl TryFrom<PreciseDecimal> for i128
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for i16
impl TryFrom<PreciseDecimal> for i16
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for i32
impl TryFrom<PreciseDecimal> for i32
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for i64
impl TryFrom<PreciseDecimal> for i64
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for i8
impl TryFrom<PreciseDecimal> for i8
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for isize
impl TryFrom<PreciseDecimal> for isize
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for u128
impl TryFrom<PreciseDecimal> for u128
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for u16
impl TryFrom<PreciseDecimal> for u16
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for u32
impl TryFrom<PreciseDecimal> for u32
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for u64
impl TryFrom<PreciseDecimal> for u64
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for u8
impl TryFrom<PreciseDecimal> for u8
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<PreciseDecimal> for usize
impl TryFrom<PreciseDecimal> for usize
Source§type Error = ParsePreciseDecimalError
type Error = ParsePreciseDecimalError
Source§impl TryFrom<String> for PreciseDecimal
impl TryFrom<String> for PreciseDecimal
Source§impl TryFrom<U192> for PreciseDecimal
impl TryFrom<U192> for PreciseDecimal
Source§impl TryFrom<U256> for PreciseDecimal
impl TryFrom<U256> for PreciseDecimal
Source§impl TryFrom<U320> for PreciseDecimal
impl TryFrom<U320> for PreciseDecimal
Source§impl TryFrom<U384> for PreciseDecimal
impl TryFrom<U384> for PreciseDecimal
Source§impl TryFrom<U448> for PreciseDecimal
impl TryFrom<U448> for PreciseDecimal
Source§impl TryFrom<U512> for PreciseDecimal
impl TryFrom<U512> for PreciseDecimal
impl Copy for PreciseDecimal
impl Eq for PreciseDecimal
impl Resolvable for PreciseDecimal
impl StructuralPartialEq for PreciseDecimal
Auto Trait Implementations§
impl Freeze for PreciseDecimal
impl RefUnwindSafe for PreciseDecimal
impl Send for PreciseDecimal
impl Sync for PreciseDecimal
impl Unpin for PreciseDecimal
impl UnwindSafe for PreciseDecimal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.