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: Self = _

The min value of PreciseDecimal.

source

pub const MAX: Self = _

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: Self = _

source

pub const ONE_HUNDREDTH: Self = _

source

pub const ONE_TENTH: Self = _

source

pub const ONE: Self = _

source

pub const TEN: Self = _

source

pub const ONE_HUNDRED: Self = _

source

pub fn zero() -> Self

Returns PreciseDecimal of 0.

source

pub fn one() -> Self

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<Self>

Returns the absolute value.

source

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

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

source

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

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

source

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]
source

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

Calculates power using exponentiation by squaring.

source

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

Square root of a PreciseDecimal

source

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

Cubic root of a PreciseDecimal

source

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

Nth root of a PreciseDecimal

source§

impl PreciseDecimal

source

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

Trait Implementations§

source§

impl Add<Decimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: Decimal) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::Output

Performs the + operation. Read more
source§

impl Add for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self::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<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 AddAssign for PreciseDecimal

source§

fn add_assign(&mut self, other: Self)

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

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: I192) -> Option<Self::Output>

source§

impl CheckedAdd<I256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: I256) -> Option<Self::Output>

source§

impl CheckedAdd<I320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: I320) -> Option<Self::Output>

source§

impl CheckedAdd<I448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: I448) -> Option<Self::Output>

source§

impl CheckedAdd<I512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: I512) -> Option<Self::Output>

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 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

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: U192) -> Option<Self::Output>

source§

impl CheckedAdd<U256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: U256) -> Option<Self::Output>

source§

impl CheckedAdd<U320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: U320) -> Option<Self::Output>

source§

impl CheckedAdd<U448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: U448) -> Option<Self::Output>

source§

impl CheckedAdd<U512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: U512) -> Option<Self::Output>

source§

impl CheckedAdd<i128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: i128) -> Option<Self::Output>

source§

impl CheckedAdd<i16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: i16) -> Option<Self::Output>

source§

impl CheckedAdd<i32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: i32) -> Option<Self::Output>

source§

impl CheckedAdd<i64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: i64) -> Option<Self::Output>

source§

impl CheckedAdd<i8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: i8) -> Option<Self::Output>

source§

impl CheckedAdd<isize> for PreciseDecimal

source§

impl CheckedAdd<u128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: u128) -> Option<Self::Output>

source§

impl CheckedAdd<u16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: u16) -> Option<Self::Output>

source§

impl CheckedAdd<u32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: u32) -> Option<Self::Output>

source§

impl CheckedAdd<u64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: u64) -> Option<Self::Output>

source§

impl CheckedAdd<u8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: u8) -> Option<Self::Output>

source§

impl CheckedAdd<usize> for PreciseDecimal

source§

impl CheckedAdd for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_add(self, other: Self) -> Option<Self::Output>

source§

impl CheckedDiv<Decimal> for PreciseDecimal

source§

impl CheckedDiv<I192> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: I192) -> Option<Self::Output>

source§

impl CheckedDiv<I256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: I256) -> Option<Self::Output>

source§

impl CheckedDiv<I320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: I320) -> Option<Self::Output>

source§

impl CheckedDiv<I448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: I448) -> Option<Self::Output>

source§

impl CheckedDiv<I512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: I512) -> Option<Self::Output>

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 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

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: U192) -> Option<Self::Output>

source§

impl CheckedDiv<U256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: U256) -> Option<Self::Output>

source§

impl CheckedDiv<U320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: U320) -> Option<Self::Output>

source§

impl CheckedDiv<U448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: U448) -> Option<Self::Output>

source§

impl CheckedDiv<U512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: U512) -> Option<Self::Output>

source§

impl CheckedDiv<i128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: i128) -> Option<Self::Output>

source§

impl CheckedDiv<i16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: i16) -> Option<Self::Output>

source§

impl CheckedDiv<i32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: i32) -> Option<Self::Output>

source§

impl CheckedDiv<i64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: i64) -> Option<Self::Output>

source§

impl CheckedDiv<i8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: i8) -> Option<Self::Output>

source§

impl CheckedDiv<isize> for PreciseDecimal

source§

impl CheckedDiv<u128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: u128) -> Option<Self::Output>

source§

impl CheckedDiv<u16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: u16) -> Option<Self::Output>

source§

impl CheckedDiv<u32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: u32) -> Option<Self::Output>

source§

impl CheckedDiv<u64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: u64) -> Option<Self::Output>

source§

impl CheckedDiv<u8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: u8) -> Option<Self::Output>

source§

impl CheckedDiv<usize> for PreciseDecimal

source§

impl CheckedDiv for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_div(self, other: Self) -> Option<Self>

source§

impl CheckedMul<Decimal> for PreciseDecimal

source§

impl CheckedMul<I192> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: I192) -> Option<Self::Output>

source§

impl CheckedMul<I256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: I256) -> Option<Self::Output>

source§

impl CheckedMul<I320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: I320) -> Option<Self::Output>

source§

impl CheckedMul<I448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: I448) -> Option<Self::Output>

source§

impl CheckedMul<I512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: I512) -> Option<Self::Output>

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 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

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: U192) -> Option<Self::Output>

source§

impl CheckedMul<U256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: U256) -> Option<Self::Output>

source§

impl CheckedMul<U320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: U320) -> Option<Self::Output>

source§

impl CheckedMul<U448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: U448) -> Option<Self::Output>

source§

impl CheckedMul<U512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: U512) -> Option<Self::Output>

source§

impl CheckedMul<i128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: i128) -> Option<Self::Output>

source§

impl CheckedMul<i16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: i16) -> Option<Self::Output>

source§

impl CheckedMul<i32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: i32) -> Option<Self::Output>

source§

impl CheckedMul<i64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: i64) -> Option<Self::Output>

source§

impl CheckedMul<i8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: i8) -> Option<Self::Output>

source§

impl CheckedMul<isize> for PreciseDecimal

source§

impl CheckedMul<u128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: u128) -> Option<Self::Output>

source§

impl CheckedMul<u16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: u16) -> Option<Self::Output>

source§

impl CheckedMul<u32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: u32) -> Option<Self::Output>

source§

impl CheckedMul<u64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: u64) -> Option<Self::Output>

source§

impl CheckedMul<u8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: u8) -> Option<Self::Output>

source§

impl CheckedMul<usize> for PreciseDecimal

source§

impl CheckedMul for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_mul(self, other: Self) -> Option<Self>

source§

impl CheckedNeg for PreciseDecimal

source§

impl CheckedSub<Decimal> for PreciseDecimal

source§

impl CheckedSub<I192> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: I192) -> Option<Self::Output>

source§

impl CheckedSub<I256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: I256) -> Option<Self::Output>

source§

impl CheckedSub<I320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: I320) -> Option<Self::Output>

source§

impl CheckedSub<I448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: I448) -> Option<Self::Output>

source§

impl CheckedSub<I512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: I512) -> Option<Self::Output>

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 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

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: U192) -> Option<Self::Output>

source§

impl CheckedSub<U256> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: U256) -> Option<Self::Output>

source§

impl CheckedSub<U320> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: U320) -> Option<Self::Output>

source§

impl CheckedSub<U448> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: U448) -> Option<Self::Output>

source§

impl CheckedSub<U512> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: U512) -> Option<Self::Output>

source§

impl CheckedSub<i128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: i128) -> Option<Self::Output>

source§

impl CheckedSub<i16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: i16) -> Option<Self::Output>

source§

impl CheckedSub<i32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: i32) -> Option<Self::Output>

source§

impl CheckedSub<i64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: i64) -> Option<Self::Output>

source§

impl CheckedSub<i8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: i8) -> Option<Self::Output>

source§

impl CheckedSub<isize> for PreciseDecimal

source§

impl CheckedSub<u128> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: u128) -> Option<Self::Output>

source§

impl CheckedSub<u16> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: u16) -> Option<Self::Output>

source§

impl CheckedSub<u32> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: u32) -> Option<Self::Output>

source§

impl CheckedSub<u64> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: u64) -> Option<Self::Output>

source§

impl CheckedSub<u8> for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: u8) -> Option<Self::Output>

source§

impl CheckedSub<usize> for PreciseDecimal

source§

impl CheckedSub for PreciseDecimal

§

type Output = PreciseDecimal

source§

fn checked_sub(self, other: Self) -> Option<Self::Output>

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

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

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>

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

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>

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

impl Default for PreciseDecimal

source§

fn default() -> Self

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

impl Describe<ScryptoCustomTypeKind> for PreciseDecimal

source§

const TYPE_ID: RustTypeId = _

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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::Output

Performs the / operation. Read more
source§

impl Div for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the / operator.
source§

fn div(self, other: Self) -> Self::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<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 DivAssign for PreciseDecimal

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

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

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: Encoder<ScryptoCustomValueKind>> Encode<ScryptoCustomValueKind, E> for PreciseDecimal

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) -> Self

Converts to this type from the input type.
source§

impl From<bool> for PreciseDecimal

source§

fn from(val: bool) -> Self

Converts to this type from the input type.
source§

impl From<i128> for PreciseDecimal

source§

fn from(val: i128) -> Self

Converts to this type from the input type.
source§

impl From<i16> for PreciseDecimal

source§

fn from(val: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for PreciseDecimal

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for PreciseDecimal

source§

fn from(val: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for PreciseDecimal

source§

fn from(val: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for PreciseDecimal

source§

fn from(val: isize) -> Self

Converts to this type from the input type.
source§

impl From<u128> for PreciseDecimal

source§

fn from(val: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for PreciseDecimal

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for PreciseDecimal

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for PreciseDecimal

source§

fn from(val: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for PreciseDecimal

source§

fn from(val: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for PreciseDecimal

source§

fn from(val: usize) -> Self

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<Self, Self::Err>

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

impl Hash for PreciseDecimal

source§

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

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

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

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

impl Mul<Decimal> for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Decimal) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the * operator.
source§

fn mul(self, other: Self) -> Self::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<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 MulAssign for PreciseDecimal

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl Neg for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::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) -> Self
where Self: Sized,

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

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

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

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

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

impl PartialEq 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 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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::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) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for PreciseDecimal

§

type Output = PreciseDecimal

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self::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<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 SubAssign for PreciseDecimal

source§

fn sub_assign(&mut self, other: Self)

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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::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<Self, Self::Error>

Performs the conversion.
source§

impl Copy for PreciseDecimal

source§

impl Eq for PreciseDecimal

source§

impl StructuralPartialEq for PreciseDecimal

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where 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 T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where 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 Q
where 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 T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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 T
where 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 T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> ManifestCategorize for T

source§

impl<T> ManifestDecode for T

source§

impl<T> ManifestEncode for T

source§

impl<T> ScryptoCategorize for T

source§

impl<T> ScryptoDecode for T

source§

impl<T> ScryptoDescribe for T

source§

impl<T> ScryptoEncode for T

source§

impl<T> ScryptoSbor for T