pub struct PreciseDecimal(pub I256);
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 underflow/overflow.

Tuple Fields§

§0: I256

Implementations§

source§

impl PreciseDecimal

source

pub const MIN: PreciseDecimal = Self(I256::MIN)

The min value of PreciseDecimal.

source

pub const MAX: PreciseDecimal = Self(I256::MAX)

The max value of PreciseDecimal.

source

pub const BITS: usize = 256usize

The bit length of number storing PreciseDecimal.

source

pub const SCALE: u32 = 36u32

The fixed scale used by PreciseDecimal.

source

pub const ZERO: PreciseDecimal = Self(I256::ZERO)

source

pub const ONE_HUNDREDTH: PreciseDecimal = Self(I256::from_digits([4003012203950112768, 542101086242752, 0, 0]))

source

pub const ONE_TENTH: PreciseDecimal = Self(I256::from_digits([3136633892082024448, 5421010862427522, 0, 0]))

source

pub const ONE: PreciseDecimal = Self(I256::from_digits([12919594847110692864, 54210108624275221, 0, 0]))

source

pub const TEN: PreciseDecimal = Self(I256::from_digits([68739955140067328, 542101086242752217, 0, 0]))

source

pub const ONE_HUNDRED: PreciseDecimal = Self(I256::from_digits([687399551400673280, 5421010862427522170, 0, 0]))

source

pub fn zero() -> PreciseDecimal

Returns PreciseDecimal of 0.

source

pub fn one() -> PreciseDecimal

Returns PreciseDecimal of 1.

source

pub fn is_zero(&self) -> bool

Whether this decimal is zero.

source

pub fn is_positive(&self) -> bool

Whether this decimal is positive.

source

pub fn is_negative(&self) -> bool

Whether this decimal is negative.

source

pub fn checked_abs(&self) -> Option<PreciseDecimal>

Returns the absolute value.

source

pub fn checked_floor(&self) -> Option<PreciseDecimal>

Returns the largest integer that is equal to or less than this number.

source

pub fn checked_ceiling(&self) -> Option<PreciseDecimal>

Returns the smallest integer that is equal to or greater than this number.

source

pub fn checked_round<T>( &self, decimal_places: T, mode: RoundingMode ) -> Option<PreciseDecimal>where T: Into<i32>,

Rounds this number to the specified decimal places.

Panics
  • Panic if the number of decimal places is not within [0..SCALE]
source

pub fn checked_powi(&self, exp: i64) -> Option<PreciseDecimal>

Calculates power using exponentiation by squaring.

source

pub fn checked_sqrt(&self) -> Option<PreciseDecimal>

Square root of a PreciseDecimal

source

pub fn checked_cbrt(&self) -> Option<PreciseDecimal>

Cubic root of a PreciseDecimal

source

pub fn checked_nth_root(&self, n: u32) -> Option<PreciseDecimal>

Nth root of a PreciseDecimal

source§

impl PreciseDecimal

source

pub fn to_vec(&self) -> Vec<u8, Global>

Trait Implementations§

source§

impl Add<Decimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> <PreciseDecimal as Add<Decimal>>::Output

Performs the + operation. Read more
source§

impl Add<I192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: I192) -> <PreciseDecimal as Add<I192>>::Output

Performs the + operation. Read more
source§

impl Add<I256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: I256) -> <PreciseDecimal as Add<I256>>::Output

Performs the + operation. Read more
source§

impl Add<I320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: I320) -> <PreciseDecimal as Add<I320>>::Output

Performs the + operation. Read more
source§

impl Add<I448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: I448) -> <PreciseDecimal as Add<I448>>::Output

Performs the + operation. Read more
source§

impl Add<I512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: I512) -> <PreciseDecimal as Add<I512>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for Decimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <Decimal as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for I192

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <I192 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for I256

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <I256 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for I320

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <I320 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for I448

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <I448 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for I512

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <I512 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add( self, other: PreciseDecimal ) -> <PreciseDecimal as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for U192

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <U192 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for U256

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <U256 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for U320

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <U320 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for U448

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <U448 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for U512

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <U512 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for i128

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <i128 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for i16

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <i16 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for i32

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <i32 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for i64

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <i64 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for i8

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <i8 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for isize

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <isize as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for u128

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <u128 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for u16

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <u16 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for u32

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <u32 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for u64

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <u64 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for u8

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <u8 as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<PreciseDecimal> for usize

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: PreciseDecimal) -> <usize as Add<PreciseDecimal>>::Output

Performs the + operation. Read more
source§

impl Add<U192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: U192) -> <PreciseDecimal as Add<U192>>::Output

Performs the + operation. Read more
source§

impl Add<U256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: U256) -> <PreciseDecimal as Add<U256>>::Output

Performs the + operation. Read more
source§

impl Add<U320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: U320) -> <PreciseDecimal as Add<U320>>::Output

Performs the + operation. Read more
source§

impl Add<U448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: U448) -> <PreciseDecimal as Add<U448>>::Output

Performs the + operation. Read more
source§

impl Add<U512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: U512) -> <PreciseDecimal as Add<U512>>::Output

Performs the + operation. Read more
source§

impl Add<i128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: i128) -> <PreciseDecimal as Add<i128>>::Output

Performs the + operation. Read more
source§

impl Add<i16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: i16) -> <PreciseDecimal as Add<i16>>::Output

Performs the + operation. Read more
source§

impl Add<i32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: i32) -> <PreciseDecimal as Add<i32>>::Output

Performs the + operation. Read more
source§

impl Add<i64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: i64) -> <PreciseDecimal as Add<i64>>::Output

Performs the + operation. Read more
source§

impl Add<i8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: i8) -> <PreciseDecimal as Add<i8>>::Output

Performs the + operation. Read more
source§

impl Add<isize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: isize) -> <PreciseDecimal as Add<isize>>::Output

Performs the + operation. Read more
source§

impl Add<u128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: u128) -> <PreciseDecimal as Add<u128>>::Output

Performs the + operation. Read more
source§

impl Add<u16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: u16) -> <PreciseDecimal as Add<u16>>::Output

Performs the + operation. Read more
source§

impl Add<u32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: u32) -> <PreciseDecimal as Add<u32>>::Output

Performs the + operation. Read more
source§

impl Add<u64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: u64) -> <PreciseDecimal as Add<u64>>::Output

Performs the + operation. Read more
source§

impl Add<u8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: u8) -> <PreciseDecimal as Add<u8>>::Output

Performs the + operation. Read more
source§

impl Add<usize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: usize) -> <PreciseDecimal as Add<usize>>::Output

Performs the + operation. Read more
source§

impl AddAssign<Decimal> for PreciseDecimal

source§

fn add_assign(&mut self, other: Decimal)

Performs the += operation. Read more
source§

impl AddAssign<I192> for PreciseDecimal

source§

fn add_assign(&mut self, other: I192)

Performs the += operation. Read more
source§

impl AddAssign<I256> for PreciseDecimal

source§

fn add_assign(&mut self, other: I256)

Performs the += operation. Read more
source§

impl AddAssign<I320> for PreciseDecimal

source§

fn add_assign(&mut self, other: I320)

Performs the += operation. Read more
source§

impl AddAssign<I448> for PreciseDecimal

source§

fn add_assign(&mut self, other: I448)

Performs the += operation. Read more
source§

impl AddAssign<I512> for PreciseDecimal

source§

fn add_assign(&mut self, other: I512)

Performs the += operation. Read more
source§

impl AddAssign<PreciseDecimal> for PreciseDecimal

source§

fn add_assign(&mut self, other: PreciseDecimal)

Performs the += operation. Read more
source§

impl AddAssign<U192> for PreciseDecimal

source§

fn add_assign(&mut self, other: U192)

Performs the += operation. Read more
source§

impl AddAssign<U256> for PreciseDecimal

source§

fn add_assign(&mut self, other: U256)

Performs the += operation. Read more
source§

impl AddAssign<U320> for PreciseDecimal

source§

fn add_assign(&mut self, other: U320)

Performs the += operation. Read more
source§

impl AddAssign<U448> for PreciseDecimal

source§

fn add_assign(&mut self, other: U448)

Performs the += operation. Read more
source§

impl AddAssign<U512> for PreciseDecimal

source§

fn add_assign(&mut self, other: U512)

Performs the += operation. Read more
source§

impl AddAssign<i128> for PreciseDecimal

source§

fn add_assign(&mut self, other: i128)

Performs the += operation. Read more
source§

impl AddAssign<i16> for PreciseDecimal

source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
source§

impl AddAssign<i32> for PreciseDecimal

source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
source§

impl AddAssign<i64> for PreciseDecimal

source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
source§

impl AddAssign<i8> for PreciseDecimal

source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
source§

impl AddAssign<isize> for PreciseDecimal

source§

fn add_assign(&mut self, other: isize)

Performs the += operation. Read more
source§

impl AddAssign<u128> for PreciseDecimal

source§

fn add_assign(&mut self, other: u128)

Performs the += operation. Read more
source§

impl AddAssign<u16> for PreciseDecimal

source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
source§

impl AddAssign<u32> for PreciseDecimal

source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
source§

impl AddAssign<u64> for PreciseDecimal

source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
source§

impl AddAssign<u8> for PreciseDecimal

source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
source§

impl AddAssign<usize> for PreciseDecimal

source§

fn add_assign(&mut self, other: usize)

Performs the += operation. Read more
source§

impl Categorize<ManifestCustomValueKind> for PreciseDecimal

source§

impl Categorize<ScryptoCustomValueKind> for PreciseDecimal

source§

impl CheckedAdd<Decimal> for PreciseDecimal

source§

impl CheckedAdd<I192> for PreciseDecimal

source§

impl CheckedAdd<I256> for PreciseDecimal

source§

impl CheckedAdd<I320> for PreciseDecimal

source§

impl CheckedAdd<I448> for PreciseDecimal

source§

impl CheckedAdd<I512> for PreciseDecimal

source§

impl CheckedAdd<PreciseDecimal> for Decimal

source§

impl CheckedAdd<PreciseDecimal> for I192

source§

impl CheckedAdd<PreciseDecimal> for I256

source§

impl CheckedAdd<PreciseDecimal> for I320

source§

impl CheckedAdd<PreciseDecimal> for I448

source§

impl CheckedAdd<PreciseDecimal> for I512

source§

impl CheckedAdd<PreciseDecimal> for PreciseDecimal

source§

impl CheckedAdd<PreciseDecimal> for U192

source§

impl CheckedAdd<PreciseDecimal> for U256

source§

impl CheckedAdd<PreciseDecimal> for U320

source§

impl CheckedAdd<PreciseDecimal> for U448

source§

impl CheckedAdd<PreciseDecimal> for U512

source§

impl CheckedAdd<U192> for PreciseDecimal

source§

impl CheckedAdd<U256> for PreciseDecimal

source§

impl CheckedAdd<U320> for PreciseDecimal

source§

impl CheckedAdd<U448> for PreciseDecimal

source§

impl CheckedAdd<U512> for PreciseDecimal

source§

impl CheckedAdd<i128> for PreciseDecimal

source§

impl CheckedAdd<i16> for PreciseDecimal

source§

impl CheckedAdd<i32> for PreciseDecimal

source§

impl CheckedAdd<i64> for PreciseDecimal

source§

impl CheckedAdd<i8> for PreciseDecimal

source§

impl CheckedAdd<isize> for PreciseDecimal

source§

impl CheckedAdd<u128> for PreciseDecimal

source§

impl CheckedAdd<u16> for PreciseDecimal

source§

impl CheckedAdd<u32> for PreciseDecimal

source§

impl CheckedAdd<u64> for PreciseDecimal

source§

impl CheckedAdd<u8> for PreciseDecimal

source§

impl CheckedAdd<usize> for PreciseDecimal

source§

impl CheckedDiv<Decimal> for PreciseDecimal

source§

impl CheckedDiv<I192> for PreciseDecimal

source§

impl CheckedDiv<I256> for PreciseDecimal

source§

impl CheckedDiv<I320> for PreciseDecimal

source§

impl CheckedDiv<I448> for PreciseDecimal

source§

impl CheckedDiv<I512> for PreciseDecimal

source§

impl CheckedDiv<PreciseDecimal> for Decimal

source§

impl CheckedDiv<PreciseDecimal> for I192

source§

impl CheckedDiv<PreciseDecimal> for I256

source§

impl CheckedDiv<PreciseDecimal> for I320

source§

impl CheckedDiv<PreciseDecimal> for I448

source§

impl CheckedDiv<PreciseDecimal> for I512

source§

impl CheckedDiv<PreciseDecimal> for PreciseDecimal

source§

impl CheckedDiv<PreciseDecimal> for U192

source§

impl CheckedDiv<PreciseDecimal> for U256

source§

impl CheckedDiv<PreciseDecimal> for U320

source§

impl CheckedDiv<PreciseDecimal> for U448

source§

impl CheckedDiv<PreciseDecimal> for U512

source§

impl CheckedDiv<U192> for PreciseDecimal

source§

impl CheckedDiv<U256> for PreciseDecimal

source§

impl CheckedDiv<U320> for PreciseDecimal

source§

impl CheckedDiv<U448> for PreciseDecimal

source§

impl CheckedDiv<U512> for PreciseDecimal

source§

impl CheckedDiv<i128> for PreciseDecimal

source§

impl CheckedDiv<i16> for PreciseDecimal

source§

impl CheckedDiv<i32> for PreciseDecimal

source§

impl CheckedDiv<i64> for PreciseDecimal

source§

impl CheckedDiv<i8> for PreciseDecimal

source§

impl CheckedDiv<isize> for PreciseDecimal

source§

impl CheckedDiv<u128> for PreciseDecimal

source§

impl CheckedDiv<u16> for PreciseDecimal

source§

impl CheckedDiv<u32> for PreciseDecimal

source§

impl CheckedDiv<u64> for PreciseDecimal

source§

impl CheckedDiv<u8> for PreciseDecimal

source§

impl CheckedDiv<usize> for PreciseDecimal

source§

impl CheckedMul<Decimal> for PreciseDecimal

source§

impl CheckedMul<I192> for PreciseDecimal

source§

impl CheckedMul<I256> for PreciseDecimal

source§

impl CheckedMul<I320> for PreciseDecimal

source§

impl CheckedMul<I448> for PreciseDecimal

source§

impl CheckedMul<I512> for PreciseDecimal

source§

impl CheckedMul<PreciseDecimal> for Decimal

source§

impl CheckedMul<PreciseDecimal> for I192

source§

impl CheckedMul<PreciseDecimal> for I256

source§

impl CheckedMul<PreciseDecimal> for I320

source§

impl CheckedMul<PreciseDecimal> for I448

source§

impl CheckedMul<PreciseDecimal> for I512

source§

impl CheckedMul<PreciseDecimal> for PreciseDecimal

source§

impl CheckedMul<PreciseDecimal> for U192

source§

impl CheckedMul<PreciseDecimal> for U256

source§

impl CheckedMul<PreciseDecimal> for U320

source§

impl CheckedMul<PreciseDecimal> for U448

source§

impl CheckedMul<PreciseDecimal> for U512

source§

impl CheckedMul<U192> for PreciseDecimal

source§

impl CheckedMul<U256> for PreciseDecimal

source§

impl CheckedMul<U320> for PreciseDecimal

source§

impl CheckedMul<U448> for PreciseDecimal

source§

impl CheckedMul<U512> for PreciseDecimal

source§

impl CheckedMul<i128> for PreciseDecimal

source§

impl CheckedMul<i16> for PreciseDecimal

source§

impl CheckedMul<i32> for PreciseDecimal

source§

impl CheckedMul<i64> for PreciseDecimal

source§

impl CheckedMul<i8> for PreciseDecimal

source§

impl CheckedMul<isize> for PreciseDecimal

source§

impl CheckedMul<u128> for PreciseDecimal

source§

impl CheckedMul<u16> for PreciseDecimal

source§

impl CheckedMul<u32> for PreciseDecimal

source§

impl CheckedMul<u64> for PreciseDecimal

source§

impl CheckedMul<u8> for PreciseDecimal

source§

impl CheckedMul<usize> for PreciseDecimal

source§

impl CheckedNeg<PreciseDecimal> for PreciseDecimal

source§

impl CheckedSub<Decimal> for PreciseDecimal

source§

impl CheckedSub<I192> for PreciseDecimal

source§

impl CheckedSub<I256> for PreciseDecimal

source§

impl CheckedSub<I320> for PreciseDecimal

source§

impl CheckedSub<I448> for PreciseDecimal

source§

impl CheckedSub<I512> for PreciseDecimal

source§

impl CheckedSub<PreciseDecimal> for Decimal

source§

impl CheckedSub<PreciseDecimal> for I192

source§

impl CheckedSub<PreciseDecimal> for I256

source§

impl CheckedSub<PreciseDecimal> for I320

source§

impl CheckedSub<PreciseDecimal> for I448

source§

impl CheckedSub<PreciseDecimal> for I512

source§

impl CheckedSub<PreciseDecimal> for PreciseDecimal

source§

impl CheckedSub<PreciseDecimal> for U192

source§

impl CheckedSub<PreciseDecimal> for U256

source§

impl CheckedSub<PreciseDecimal> for U320

source§

impl CheckedSub<PreciseDecimal> for U448

source§

impl CheckedSub<PreciseDecimal> for U512

source§

impl CheckedSub<U192> for PreciseDecimal

source§

impl CheckedSub<U256> for PreciseDecimal

source§

impl CheckedSub<U320> for PreciseDecimal

source§

impl CheckedSub<U448> for PreciseDecimal

source§

impl CheckedSub<U512> for PreciseDecimal

source§

impl CheckedSub<i128> for PreciseDecimal

source§

impl CheckedSub<i16> for PreciseDecimal

source§

impl CheckedSub<i32> for PreciseDecimal

source§

impl CheckedSub<i64> for PreciseDecimal

source§

impl CheckedSub<i8> for PreciseDecimal

source§

impl CheckedSub<isize> for PreciseDecimal

source§

impl CheckedSub<u128> for PreciseDecimal

source§

impl CheckedSub<u16> for PreciseDecimal

source§

impl CheckedSub<u32> for PreciseDecimal

source§

impl CheckedSub<u64> for PreciseDecimal

source§

impl CheckedSub<u8> for PreciseDecimal

source§

impl CheckedSub<usize> for PreciseDecimal

source§

impl CheckedTruncate<Decimal> for PreciseDecimal

source§

impl Clone for PreciseDecimal

source§

fn clone(&self) -> PreciseDecimal

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 PreciseDecimal

source§

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

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

impl<D> Decode<ManifestCustomValueKind, D> for PreciseDecimalwhere D: Decoder<ManifestCustomValueKind>,

source§

fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ManifestCustomValueKind> ) -> Result<PreciseDecimal, DecodeError>

Decodes the type from the decoder, which should match a preloaded value kind. Read more
source§

impl<D> Decode<ScryptoCustomValueKind, D> for PreciseDecimalwhere D: Decoder<ScryptoCustomValueKind>,

source§

fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ScryptoCustomValueKind> ) -> Result<PreciseDecimal, DecodeError>

Decodes the type from the decoder, which should match a preloaded value kind. Read more
source§

impl Default for PreciseDecimal

source§

fn default() -> PreciseDecimal

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

impl Describe<ScryptoCustomTypeKind> for PreciseDecimal

source§

const TYPE_ID: RustTypeId = sbor::RustTypeId::WellKnown(crate::data::scrypto::well_known_scrypto_custom_types::PRECISE_DECIMAL_TYPE)

The 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 more
source§

fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>

Returns the local schema for the given type. Read more
source§

fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)

For each type referenced in get_local_type_data, we need to ensure that the type and all of its own references get added to the aggregator. Read more
source§

impl Display for PreciseDecimal

source§

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

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

impl Div<Decimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: Decimal) -> <PreciseDecimal as Div<Decimal>>::Output

Performs the / operation. Read more
source§

impl Div<I192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: I192) -> <PreciseDecimal as Div<I192>>::Output

Performs the / operation. Read more
source§

impl Div<I256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: I256) -> <PreciseDecimal as Div<I256>>::Output

Performs the / operation. Read more
source§

impl Div<I320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: I320) -> <PreciseDecimal as Div<I320>>::Output

Performs the / operation. Read more
source§

impl Div<I448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: I448) -> <PreciseDecimal as Div<I448>>::Output

Performs the / operation. Read more
source§

impl Div<I512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: I512) -> <PreciseDecimal as Div<I512>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for Decimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <Decimal as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for I192

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <I192 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for I256

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <I256 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for I320

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <I320 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for I448

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <I448 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for I512

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <I512 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div( self, other: PreciseDecimal ) -> <PreciseDecimal as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for U192

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <U192 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for U256

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <U256 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for U320

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <U320 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for U448

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <U448 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for U512

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <U512 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for i128

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <i128 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for i16

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <i16 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for i32

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <i32 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for i64

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <i64 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for i8

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <i8 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for isize

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <isize as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for u128

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <u128 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for u16

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <u16 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for u32

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <u32 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for u64

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <u64 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for u8

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <u8 as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<PreciseDecimal> for usize

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: PreciseDecimal) -> <usize as Div<PreciseDecimal>>::Output

Performs the / operation. Read more
source§

impl Div<U192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: U192) -> <PreciseDecimal as Div<U192>>::Output

Performs the / operation. Read more
source§

impl Div<U256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: U256) -> <PreciseDecimal as Div<U256>>::Output

Performs the / operation. Read more
source§

impl Div<U320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: U320) -> <PreciseDecimal as Div<U320>>::Output

Performs the / operation. Read more
source§

impl Div<U448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: U448) -> <PreciseDecimal as Div<U448>>::Output

Performs the / operation. Read more
source§

impl Div<U512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: U512) -> <PreciseDecimal as Div<U512>>::Output

Performs the / operation. Read more
source§

impl Div<i128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: i128) -> <PreciseDecimal as Div<i128>>::Output

Performs the / operation. Read more
source§

impl Div<i16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: i16) -> <PreciseDecimal as Div<i16>>::Output

Performs the / operation. Read more
source§

impl Div<i32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: i32) -> <PreciseDecimal as Div<i32>>::Output

Performs the / operation. Read more
source§

impl Div<i64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: i64) -> <PreciseDecimal as Div<i64>>::Output

Performs the / operation. Read more
source§

impl Div<i8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: i8) -> <PreciseDecimal as Div<i8>>::Output

Performs the / operation. Read more
source§

impl Div<isize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: isize) -> <PreciseDecimal as Div<isize>>::Output

Performs the / operation. Read more
source§

impl Div<u128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: u128) -> <PreciseDecimal as Div<u128>>::Output

Performs the / operation. Read more
source§

impl Div<u16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: u16) -> <PreciseDecimal as Div<u16>>::Output

Performs the / operation. Read more
source§

impl Div<u32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> <PreciseDecimal as Div<u32>>::Output

Performs the / operation. Read more
source§

impl Div<u64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: u64) -> <PreciseDecimal as Div<u64>>::Output

Performs the / operation. Read more
source§

impl Div<u8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: u8) -> <PreciseDecimal as Div<u8>>::Output

Performs the / operation. Read more
source§

impl Div<usize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: usize) -> <PreciseDecimal as Div<usize>>::Output

Performs the / operation. Read more
source§

impl DivAssign<Decimal> for PreciseDecimal

source§

fn div_assign(&mut self, other: Decimal)

Performs the /= operation. Read more
source§

impl DivAssign<I192> for PreciseDecimal

source§

fn div_assign(&mut self, other: I192)

Performs the /= operation. Read more
source§

impl DivAssign<I256> for PreciseDecimal

source§

fn div_assign(&mut self, other: I256)

Performs the /= operation. Read more
source§

impl DivAssign<I320> for PreciseDecimal

source§

fn div_assign(&mut self, other: I320)

Performs the /= operation. Read more
source§

impl DivAssign<I448> for PreciseDecimal

source§

fn div_assign(&mut self, other: I448)

Performs the /= operation. Read more
source§

impl DivAssign<I512> for PreciseDecimal

source§

fn div_assign(&mut self, other: I512)

Performs the /= operation. Read more
source§

impl DivAssign<PreciseDecimal> for PreciseDecimal

source§

fn div_assign(&mut self, other: PreciseDecimal)

Performs the /= operation. Read more
source§

impl DivAssign<U192> for PreciseDecimal

source§

fn div_assign(&mut self, other: U192)

Performs the /= operation. Read more
source§

impl DivAssign<U256> for PreciseDecimal

source§

fn div_assign(&mut self, other: U256)

Performs the /= operation. Read more
source§

impl DivAssign<U320> for PreciseDecimal

source§

fn div_assign(&mut self, other: U320)

Performs the /= operation. Read more
source§

impl DivAssign<U448> for PreciseDecimal

source§

fn div_assign(&mut self, other: U448)

Performs the /= operation. Read more
source§

impl DivAssign<U512> for PreciseDecimal

source§

fn div_assign(&mut self, other: U512)

Performs the /= operation. Read more
source§

impl DivAssign<i128> for PreciseDecimal

source§

fn div_assign(&mut self, other: i128)

Performs the /= operation. Read more
source§

impl DivAssign<i16> for PreciseDecimal

source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
source§

impl DivAssign<i32> for PreciseDecimal

source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
source§

impl DivAssign<i64> for PreciseDecimal

source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
source§

impl DivAssign<i8> for PreciseDecimal

source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
source§

impl DivAssign<isize> for PreciseDecimal

source§

fn div_assign(&mut self, other: isize)

Performs the /= operation. Read more
source§

impl DivAssign<u128> for PreciseDecimal

source§

fn div_assign(&mut self, other: u128)

Performs the /= operation. Read more
source§

impl DivAssign<u16> for PreciseDecimal

source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for PreciseDecimal

source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
source§

impl DivAssign<u64> for PreciseDecimal

source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
source§

impl DivAssign<u8> for PreciseDecimal

source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
source§

impl DivAssign<usize> for PreciseDecimal

source§

fn div_assign(&mut self, other: usize)

Performs the /= operation. Read more
source§

impl<E> Encode<ManifestCustomValueKind, E> for PreciseDecimalwhere E: Encoder<ManifestCustomValueKind>,

source§

fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR value’s kind to the encoder
source§

fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR body of the type to the encoder. Read more
source§

impl<E> Encode<ScryptoCustomValueKind, E> for PreciseDecimalwhere E: Encoder<ScryptoCustomValueKind>,

source§

fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR value’s kind to the encoder
source§

fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR body of the type to the encoder. Read more
source§

impl From<Decimal> for PreciseDecimal

source§

fn from(val: Decimal) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<bool> for PreciseDecimal

source§

fn from(val: bool) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<i128> for PreciseDecimal

source§

fn from(val: i128) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<i16> for PreciseDecimal

source§

fn from(val: i16) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<i32> for PreciseDecimal

source§

fn from(val: i32) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<i64> for PreciseDecimal

source§

fn from(val: i64) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<i8> for PreciseDecimal

source§

fn from(val: i8) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<isize> for PreciseDecimal

source§

fn from(val: isize) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<u128> for PreciseDecimal

source§

fn from(val: u128) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<u16> for PreciseDecimal

source§

fn from(val: u16) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<u32> for PreciseDecimal

source§

fn from(val: u32) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<u64> for PreciseDecimal

source§

fn from(val: u64) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<u8> for PreciseDecimal

source§

fn from(val: u8) -> PreciseDecimal

Converts to this type from the input type.
source§

impl From<usize> for PreciseDecimal

source§

fn from(val: usize) -> PreciseDecimal

Converts to this type from the input type.
source§

impl FromStr for PreciseDecimal

§

type Err = ParsePreciseDecimalError

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

fn from_str(s: &str) -> Result<PreciseDecimal, <PreciseDecimal as FromStr>::Err>

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

impl Hash for PreciseDecimal

source§

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

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 PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> <PreciseDecimal as Mul<Decimal>>::Output

Performs the * operation. Read more
source§

impl Mul<I192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: I192) -> <PreciseDecimal as Mul<I192>>::Output

Performs the * operation. Read more
source§

impl Mul<I256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: I256) -> <PreciseDecimal as Mul<I256>>::Output

Performs the * operation. Read more
source§

impl Mul<I320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: I320) -> <PreciseDecimal as Mul<I320>>::Output

Performs the * operation. Read more
source§

impl Mul<I448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: I448) -> <PreciseDecimal as Mul<I448>>::Output

Performs the * operation. Read more
source§

impl Mul<I512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: I512) -> <PreciseDecimal as Mul<I512>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for Decimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <Decimal as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for I192

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <I192 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for I256

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <I256 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for I320

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <I320 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for I448

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <I448 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for I512

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <I512 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul( self, other: PreciseDecimal ) -> <PreciseDecimal as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for U192

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <U192 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for U256

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <U256 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for U320

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <U320 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for U448

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <U448 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for U512

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <U512 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for i128

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <i128 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for i16

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <i16 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for i32

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <i32 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for i64

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <i64 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for i8

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <i8 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for isize

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <isize as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for u128

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <u128 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for u16

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <u16 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for u32

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <u32 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for u64

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <u64 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for u8

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <u8 as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<PreciseDecimal> for usize

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: PreciseDecimal) -> <usize as Mul<PreciseDecimal>>::Output

Performs the * operation. Read more
source§

impl Mul<U192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: U192) -> <PreciseDecimal as Mul<U192>>::Output

Performs the * operation. Read more
source§

impl Mul<U256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: U256) -> <PreciseDecimal as Mul<U256>>::Output

Performs the * operation. Read more
source§

impl Mul<U320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: U320) -> <PreciseDecimal as Mul<U320>>::Output

Performs the * operation. Read more
source§

impl Mul<U448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: U448) -> <PreciseDecimal as Mul<U448>>::Output

Performs the * operation. Read more
source§

impl Mul<U512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: U512) -> <PreciseDecimal as Mul<U512>>::Output

Performs the * operation. Read more
source§

impl Mul<i128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i128) -> <PreciseDecimal as Mul<i128>>::Output

Performs the * operation. Read more
source§

impl Mul<i16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i16) -> <PreciseDecimal as Mul<i16>>::Output

Performs the * operation. Read more
source§

impl Mul<i32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i32) -> <PreciseDecimal as Mul<i32>>::Output

Performs the * operation. Read more
source§

impl Mul<i64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i64) -> <PreciseDecimal as Mul<i64>>::Output

Performs the * operation. Read more
source§

impl Mul<i8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: i8) -> <PreciseDecimal as Mul<i8>>::Output

Performs the * operation. Read more
source§

impl Mul<isize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: isize) -> <PreciseDecimal as Mul<isize>>::Output

Performs the * operation. Read more
source§

impl Mul<u128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u128) -> <PreciseDecimal as Mul<u128>>::Output

Performs the * operation. Read more
source§

impl Mul<u16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u16) -> <PreciseDecimal as Mul<u16>>::Output

Performs the * operation. Read more
source§

impl Mul<u32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> <PreciseDecimal as Mul<u32>>::Output

Performs the * operation. Read more
source§

impl Mul<u64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u64) -> <PreciseDecimal as Mul<u64>>::Output

Performs the * operation. Read more
source§

impl Mul<u8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: u8) -> <PreciseDecimal as Mul<u8>>::Output

Performs the * operation. Read more
source§

impl Mul<usize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: usize) -> <PreciseDecimal as Mul<usize>>::Output

Performs the * operation. Read more
source§

impl MulAssign<Decimal> for PreciseDecimal

source§

fn mul_assign(&mut self, other: Decimal)

Performs the *= operation. Read more
source§

impl MulAssign<I192> for PreciseDecimal

source§

fn mul_assign(&mut self, other: I192)

Performs the *= operation. Read more
source§

impl MulAssign<I256> for PreciseDecimal

source§

fn mul_assign(&mut self, other: I256)

Performs the *= operation. Read more
source§

impl MulAssign<I320> for PreciseDecimal

source§

fn mul_assign(&mut self, other: I320)

Performs the *= operation. Read more
source§

impl MulAssign<I448> for PreciseDecimal

source§

fn mul_assign(&mut self, other: I448)

Performs the *= operation. Read more
source§

impl MulAssign<I512> for PreciseDecimal

source§

fn mul_assign(&mut self, other: I512)

Performs the *= operation. Read more
source§

impl MulAssign<PreciseDecimal> for PreciseDecimal

source§

fn mul_assign(&mut self, other: PreciseDecimal)

Performs the *= operation. Read more
source§

impl MulAssign<U192> for PreciseDecimal

source§

fn mul_assign(&mut self, other: U192)

Performs the *= operation. Read more
source§

impl MulAssign<U256> for PreciseDecimal

source§

fn mul_assign(&mut self, other: U256)

Performs the *= operation. Read more
source§

impl MulAssign<U320> for PreciseDecimal

source§

fn mul_assign(&mut self, other: U320)

Performs the *= operation. Read more
source§

impl MulAssign<U448> for PreciseDecimal

source§

fn mul_assign(&mut self, other: U448)

Performs the *= operation. Read more
source§

impl MulAssign<U512> for PreciseDecimal

source§

fn mul_assign(&mut self, other: U512)

Performs the *= operation. Read more
source§

impl MulAssign<i128> for PreciseDecimal

source§

fn mul_assign(&mut self, other: i128)

Performs the *= operation. Read more
source§

impl MulAssign<i16> for PreciseDecimal

source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
source§

impl MulAssign<i32> for PreciseDecimal

source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
source§

impl MulAssign<i64> for PreciseDecimal

source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
source§

impl MulAssign<i8> for PreciseDecimal

source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
source§

impl MulAssign<isize> for PreciseDecimal

source§

fn mul_assign(&mut self, other: isize)

Performs the *= operation. Read more
source§

impl MulAssign<u128> for PreciseDecimal

source§

fn mul_assign(&mut self, other: u128)

Performs the *= operation. Read more
source§

impl MulAssign<u16> for PreciseDecimal

source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for PreciseDecimal

source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
source§

impl MulAssign<u64> for PreciseDecimal

source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
source§

impl MulAssign<u8> for PreciseDecimal

source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
source§

impl MulAssign<usize> for PreciseDecimal

source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
source§

impl Neg for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn neg(self) -> <PreciseDecimal as Neg>::Output

Performs the unary - operation. Read more
source§

impl Ord for PreciseDecimal

source§

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

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

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

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

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

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

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

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

impl PartialEq<PreciseDecimal> for PreciseDecimal

source§

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

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

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

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

impl PartialOrd<PreciseDecimal> for PreciseDecimal

source§

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

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

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

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

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

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

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

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

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

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

impl Sub<Decimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Decimal) -> <PreciseDecimal as Sub<Decimal>>::Output

Performs the - operation. Read more
source§

impl Sub<I192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: I192) -> <PreciseDecimal as Sub<I192>>::Output

Performs the - operation. Read more
source§

impl Sub<I256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: I256) -> <PreciseDecimal as Sub<I256>>::Output

Performs the - operation. Read more
source§

impl Sub<I320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: I320) -> <PreciseDecimal as Sub<I320>>::Output

Performs the - operation. Read more
source§

impl Sub<I448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: I448) -> <PreciseDecimal as Sub<I448>>::Output

Performs the - operation. Read more
source§

impl Sub<I512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: I512) -> <PreciseDecimal as Sub<I512>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for Decimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <Decimal as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for I192

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <I192 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for I256

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <I256 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for I320

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <I320 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for I448

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <I448 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for I512

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <I512 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub( self, other: PreciseDecimal ) -> <PreciseDecimal as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for U192

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <U192 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for U256

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <U256 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for U320

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <U320 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for U448

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <U448 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for U512

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <U512 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for i128

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <i128 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for i16

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <i16 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for i32

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <i32 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for i64

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <i64 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for i8

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <i8 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for isize

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <isize as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for u128

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <u128 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for u16

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <u16 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for u32

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <u32 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for u64

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <u64 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for u8

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <u8 as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<PreciseDecimal> for usize

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: PreciseDecimal) -> <usize as Sub<PreciseDecimal>>::Output

Performs the - operation. Read more
source§

impl Sub<U192> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: U192) -> <PreciseDecimal as Sub<U192>>::Output

Performs the - operation. Read more
source§

impl Sub<U256> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: U256) -> <PreciseDecimal as Sub<U256>>::Output

Performs the - operation. Read more
source§

impl Sub<U320> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: U320) -> <PreciseDecimal as Sub<U320>>::Output

Performs the - operation. Read more
source§

impl Sub<U448> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: U448) -> <PreciseDecimal as Sub<U448>>::Output

Performs the - operation. Read more
source§

impl Sub<U512> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: U512) -> <PreciseDecimal as Sub<U512>>::Output

Performs the - operation. Read more
source§

impl Sub<i128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i128) -> <PreciseDecimal as Sub<i128>>::Output

Performs the - operation. Read more
source§

impl Sub<i16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i16) -> <PreciseDecimal as Sub<i16>>::Output

Performs the - operation. Read more
source§

impl Sub<i32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i32) -> <PreciseDecimal as Sub<i32>>::Output

Performs the - operation. Read more
source§

impl Sub<i64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i64) -> <PreciseDecimal as Sub<i64>>::Output

Performs the - operation. Read more
source§

impl Sub<i8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: i8) -> <PreciseDecimal as Sub<i8>>::Output

Performs the - operation. Read more
source§

impl Sub<isize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: isize) -> <PreciseDecimal as Sub<isize>>::Output

Performs the - operation. Read more
source§

impl Sub<u128> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u128) -> <PreciseDecimal as Sub<u128>>::Output

Performs the - operation. Read more
source§

impl Sub<u16> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u16) -> <PreciseDecimal as Sub<u16>>::Output

Performs the - operation. Read more
source§

impl Sub<u32> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u32) -> <PreciseDecimal as Sub<u32>>::Output

Performs the - operation. Read more
source§

impl Sub<u64> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u64) -> <PreciseDecimal as Sub<u64>>::Output

Performs the - operation. Read more
source§

impl Sub<u8> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: u8) -> <PreciseDecimal as Sub<u8>>::Output

Performs the - operation. Read more
source§

impl Sub<usize> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: usize) -> <PreciseDecimal as Sub<usize>>::Output

Performs the - operation. Read more
source§

impl SubAssign<Decimal> for PreciseDecimal

source§

fn sub_assign(&mut self, other: Decimal)

Performs the -= operation. Read more
source§

impl SubAssign<I192> for PreciseDecimal

source§

fn sub_assign(&mut self, other: I192)

Performs the -= operation. Read more
source§

impl SubAssign<I256> for PreciseDecimal

source§

fn sub_assign(&mut self, other: I256)

Performs the -= operation. Read more
source§

impl SubAssign<I320> for PreciseDecimal

source§

fn sub_assign(&mut self, other: I320)

Performs the -= operation. Read more
source§

impl SubAssign<I448> for PreciseDecimal

source§

fn sub_assign(&mut self, other: I448)

Performs the -= operation. Read more
source§

impl SubAssign<I512> for PreciseDecimal

source§

fn sub_assign(&mut self, other: I512)

Performs the -= operation. Read more
source§

impl SubAssign<PreciseDecimal> for PreciseDecimal

source§

fn sub_assign(&mut self, other: PreciseDecimal)

Performs the -= operation. Read more
source§

impl SubAssign<U192> for PreciseDecimal

source§

fn sub_assign(&mut self, other: U192)

Performs the -= operation. Read more
source§

impl SubAssign<U256> for PreciseDecimal

source§

fn sub_assign(&mut self, other: U256)

Performs the -= operation. Read more
source§

impl SubAssign<U320> for PreciseDecimal

source§

fn sub_assign(&mut self, other: U320)

Performs the -= operation. Read more
source§

impl SubAssign<U448> for PreciseDecimal

source§

fn sub_assign(&mut self, other: U448)

Performs the -= operation. Read more
source§

impl SubAssign<U512> for PreciseDecimal

source§

fn sub_assign(&mut self, other: U512)

Performs the -= operation. Read more
source§

impl SubAssign<i128> for PreciseDecimal

source§

fn sub_assign(&mut self, other: i128)

Performs the -= operation. Read more
source§

impl SubAssign<i16> for PreciseDecimal

source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
source§

impl SubAssign<i32> for PreciseDecimal

source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
source§

impl SubAssign<i64> for PreciseDecimal

source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
source§

impl SubAssign<i8> for PreciseDecimal

source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
source§

impl SubAssign<isize> for PreciseDecimal

source§

fn sub_assign(&mut self, other: isize)

Performs the -= operation. Read more
source§

impl SubAssign<u128> for PreciseDecimal

source§

fn sub_assign(&mut self, other: u128)

Performs the -= operation. Read more
source§

impl SubAssign<u16> for PreciseDecimal

source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for PreciseDecimal

source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
source§

impl SubAssign<u64> for PreciseDecimal

source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
source§

impl SubAssign<u8> for PreciseDecimal

source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
source§

impl SubAssign<usize> for PreciseDecimal

source§

fn sub_assign(&mut self, other: usize)

Performs the -= operation. Read more
source§

impl TryFrom<&[u8]> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( slice: &[u8] ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<&[u8]>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for i128

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<i128, <i128 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for i16

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<i16, <i16 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for i32

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<i32, <i32 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for i64

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<i64, <i64 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for i8

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<i8, <i8 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for isize

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<isize, <isize as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for u128

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<u128, <u128 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for u16

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<u16, <u16 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for u32

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<u32, <u32 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for u64

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<u64, <u64 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for u8

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<u8, <u8 as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&PreciseDecimal> for usize

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &PreciseDecimal ) -> Result<usize, <usize as TryFrom<&PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<&str> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: &str ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl TryFrom<I192> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I192 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I192>>::Error>

Performs the conversion.
source§

impl TryFrom<I256> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I256 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I256>>::Error>

Performs the conversion.
source§

impl TryFrom<I320> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I320 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I320>>::Error>

Performs the conversion.
source§

impl TryFrom<I384> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I384 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I384>>::Error>

Performs the conversion.
source§

impl TryFrom<I448> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I448 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I448>>::Error>

Performs the conversion.
source§

impl TryFrom<I512> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: I512 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<I512>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for Decimal

§

type Error = ParseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<Decimal, <Decimal as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for i128

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<i128, <i128 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for i16

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<i16, <i16 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for i32

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<i32, <i32 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for i64

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<i64, <i64 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for i8

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<i8, <i8 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for isize

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<isize, <isize as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for u128

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<u128, <u128 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for u16

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<u16, <u16 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for u32

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<u32, <u32 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for u64

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<u64, <u64 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for u8

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<u8, <u8 as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<PreciseDecimal> for usize

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: PreciseDecimal ) -> Result<usize, <usize as TryFrom<PreciseDecimal>>::Error>

Performs the conversion.
source§

impl TryFrom<String> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: String ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<String>>::Error>

Performs the conversion.
source§

impl TryFrom<U192> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U192 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U192>>::Error>

Performs the conversion.
source§

impl TryFrom<U256> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U256 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U256>>::Error>

Performs the conversion.
source§

impl TryFrom<U320> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U320 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U320>>::Error>

Performs the conversion.
source§

impl TryFrom<U384> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U384 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U384>>::Error>

Performs the conversion.
source§

impl TryFrom<U448> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U448 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U448>>::Error>

Performs the conversion.
source§

impl TryFrom<U512> for PreciseDecimal

§

type Error = ParsePreciseDecimalError

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

fn try_from( val: U512 ) -> Result<PreciseDecimal, <PreciseDecimal as TryFrom<U512>>::Error>

Performs the conversion.
source§

impl Copy for PreciseDecimal

source§

impl Eq for PreciseDecimal

source§

impl StructuralEq for PreciseDecimal

source§

impl StructuralPartialEq for PreciseDecimal

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> Twhere T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

default fn to_string(&self) -> String

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

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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

§

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

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

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> ManifestCategorize for Twhere T: Categorize<ManifestCustomValueKind> + ?Sized,

source§

impl<T> ManifestDecode for Twhere T: for<'a> Decode<ManifestCustomValueKind, VecDecoder<'a, ManifestCustomValueKind>>,

source§

impl<T> ManifestEncode for Twhere T: for<'a> Encode<ManifestCustomValueKind, VecEncoder<'a, ManifestCustomValueKind>> + ?Sized,

source§

impl<T> ScryptoCategorize for Twhere T: Categorize<ScryptoCustomValueKind> + ?Sized,

source§

impl<T> ScryptoDecode for Twhere T: for<'a> Decode<ScryptoCustomValueKind, VecDecoder<'a, ScryptoCustomValueKind>>,

source§

impl<T> ScryptoDescribe for Twhere T: Describe<ScryptoCustomTypeKind>,

source§

impl<T> ScryptoEncode for Twhere T: for<'a> Encode<ScryptoCustomValueKind, VecEncoder<'a, ScryptoCustomValueKind>> + ?Sized,

source§

impl<T> ScryptoSbor for Twhere T: ScryptoCategorize + ScryptoDecode + ScryptoEncode + ScryptoDescribe,