Struct decimal_rs::Decimal [−][src]
High precision decimal.
Implementations
impl Decimal
[src]
pub const ZERO: Decimal
[src]
Zero value, i.e. 0
.
pub const ONE: Decimal
[src]
i.e. 1
.
pub fn precision(&self) -> u8
[src]
Returns the scale, i.e. the count of significant digits in this decimal.
pub const fn scale(&self) -> i16
[src]
Returns the scale, i.e. the count of decimal digits in the fractional part. A positive scale means a negative power of 10.
pub const fn is_sign_negative(&self) -> bool
[src]
Returns true
if the sign bit of the decimal is negative.
pub const fn is_sign_positive(&self) -> bool
[src]
Returns true
if the sign bit of the decimal is positive.
pub const fn is_zero(&self) -> bool
[src]
Checks if self
is zero.
pub fn abs(&self) -> Decimal
[src]
Computes the absolute value of self
.
pub fn encode<W: Write>(&self, mut writer: W) -> Result<usize>
[src]
Encodes self
to writer
as binary bytes.
Returns total size on success, which is not larger than MAX_BINARY_SIZE
.
pub fn decode(bytes: &[u8]) -> Decimal
[src]
Decodes a Decimal
from binary bytes.
pub fn trunc(&self, scale: i16) -> Decimal
[src]
Truncate a value to have scale
digits after the decimal point.
We allow negative scale
, implying a truncation before the decimal
point.
pub fn round(&self, scale: i16) -> Decimal
[src]
Round a value to have scale
digits after the decimal point.
We allow negative scale
, implying rounding before the decimal
point.
pub fn round_with_precision(&mut self, precision: u8, scale: i16) -> bool
[src]
Do bounds checking and rounding according to precision
and scale
.
Returns true
if overflows.
pub fn normalize(&self) -> Decimal
[src]
Normalize a Decimal
's scale toward zero.
pub fn checked_add(&self, other: Decimal) -> Option<Decimal>
[src]
Add two decimals,
returning None
if overflow occurred.
pub fn checked_sub(&self, other: Decimal) -> Option<Decimal>
[src]
Subtract one decimal from another,
returning None
if overflow occurred.
pub fn checked_mul(&self, other: Decimal) -> Option<Decimal>
[src]
Calculate the product of two decimals,
returning None
if overflow occurred.
pub fn checked_div(&self, other: Decimal) -> Option<Decimal>
[src]
Checked decimal division.
Computes self / other
, returning None
if other == 0
or the division results in overflow.
pub fn checked_rem(&self, other: Decimal) -> Option<Decimal>
[src]
Checked decimal remainder.
Computes self % other
, returning None if rhs == 0 or the division results in overflow.
Trait Implementations
impl Add<&'_ Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: &Decimal) -> Self::Output
[src]
impl Add<&'_ Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: &Decimal) -> Self::Output
[src]
impl Add<Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: Decimal) -> Self::Output
[src]
impl Add<Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl Add<f32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: f32) -> Self::Output
[src]
impl Add<f32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: f32) -> Self::Output
[src]
impl Add<f64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: f64) -> Self::Output
[src]
impl Add<f64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: f64) -> Self::Output
[src]
impl Add<i128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i128) -> Self::Output
[src]
impl Add<i128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i128) -> Self::Output
[src]
impl Add<i16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i16) -> Self::Output
[src]
impl Add<i16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i16) -> Self::Output
[src]
impl Add<i32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Self::Output
[src]
impl Add<i32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i32) -> Self::Output
[src]
impl Add<i64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i64) -> Self::Output
[src]
impl Add<i64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i64) -> Self::Output
[src]
impl Add<i8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i8) -> Self::Output
[src]
impl Add<i8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: i8) -> Self::Output
[src]
impl Add<isize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: isize) -> Self::Output
[src]
impl Add<isize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: isize) -> Self::Output
[src]
impl Add<u128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u128) -> Self::Output
[src]
impl Add<u128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u128) -> Self::Output
[src]
impl Add<u16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u16) -> Self::Output
[src]
impl Add<u16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u16) -> Self::Output
[src]
impl Add<u32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u32) -> Self::Output
[src]
impl Add<u32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u32) -> Self::Output
[src]
impl Add<u64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u64) -> Self::Output
[src]
impl Add<u64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u64) -> Self::Output
[src]
impl Add<u8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u8) -> Self::Output
[src]
impl Add<u8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: u8) -> Self::Output
[src]
impl Add<usize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Self::Output
[src]
impl Add<usize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the +
operator.
fn add(self, other: usize) -> Self::Output
[src]
impl AddAssign<&'_ Decimal> for Decimal
[src]
fn add_assign(&mut self, other: &Decimal)
[src]
impl AddAssign<&'_ Decimal> for &mut Decimal
[src]
fn add_assign(&mut self, other: &Decimal)
[src]
impl AddAssign<Decimal> for Decimal
[src]
fn add_assign(&mut self, other: Decimal)
[src]
impl AddAssign<Decimal> for &mut Decimal
[src]
fn add_assign(&mut self, other: Decimal)
[src]
impl AddAssign<f32> for Decimal
[src]
fn add_assign(&mut self, other: f32)
[src]
impl AddAssign<f32> for &mut Decimal
[src]
fn add_assign(&mut self, other: f32)
[src]
impl AddAssign<f64> for Decimal
[src]
fn add_assign(&mut self, other: f64)
[src]
impl AddAssign<f64> for &mut Decimal
[src]
fn add_assign(&mut self, other: f64)
[src]
impl AddAssign<i128> for Decimal
[src]
fn add_assign(&mut self, other: i128)
[src]
impl AddAssign<i128> for &mut Decimal
[src]
fn add_assign(&mut self, other: i128)
[src]
impl AddAssign<i16> for Decimal
[src]
fn add_assign(&mut self, other: i16)
[src]
impl AddAssign<i16> for &mut Decimal
[src]
fn add_assign(&mut self, other: i16)
[src]
impl AddAssign<i32> for Decimal
[src]
fn add_assign(&mut self, other: i32)
[src]
impl AddAssign<i32> for &mut Decimal
[src]
fn add_assign(&mut self, other: i32)
[src]
impl AddAssign<i64> for Decimal
[src]
fn add_assign(&mut self, other: i64)
[src]
impl AddAssign<i64> for &mut Decimal
[src]
fn add_assign(&mut self, other: i64)
[src]
impl AddAssign<i8> for Decimal
[src]
fn add_assign(&mut self, other: i8)
[src]
impl AddAssign<i8> for &mut Decimal
[src]
fn add_assign(&mut self, other: i8)
[src]
impl AddAssign<isize> for Decimal
[src]
fn add_assign(&mut self, other: isize)
[src]
impl AddAssign<isize> for &mut Decimal
[src]
fn add_assign(&mut self, other: isize)
[src]
impl AddAssign<u128> for Decimal
[src]
fn add_assign(&mut self, other: u128)
[src]
impl AddAssign<u128> for &mut Decimal
[src]
fn add_assign(&mut self, other: u128)
[src]
impl AddAssign<u16> for Decimal
[src]
fn add_assign(&mut self, other: u16)
[src]
impl AddAssign<u16> for &mut Decimal
[src]
fn add_assign(&mut self, other: u16)
[src]
impl AddAssign<u32> for Decimal
[src]
fn add_assign(&mut self, other: u32)
[src]
impl AddAssign<u32> for &mut Decimal
[src]
fn add_assign(&mut self, other: u32)
[src]
impl AddAssign<u64> for Decimal
[src]
fn add_assign(&mut self, other: u64)
[src]
impl AddAssign<u64> for &mut Decimal
[src]
fn add_assign(&mut self, other: u64)
[src]
impl AddAssign<u8> for Decimal
[src]
fn add_assign(&mut self, other: u8)
[src]
impl AddAssign<u8> for &mut Decimal
[src]
fn add_assign(&mut self, other: u8)
[src]
impl AddAssign<usize> for Decimal
[src]
fn add_assign(&mut self, other: usize)
[src]
impl AddAssign<usize> for &mut Decimal
[src]
fn add_assign(&mut self, other: usize)
[src]
impl Clone for Decimal
[src]
impl Copy for Decimal
[src]
impl Debug for Decimal
[src]
impl Default for Decimal
[src]
impl Display for Decimal
[src]
impl Div<&'_ Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: &Decimal) -> Self::Output
[src]
impl Div<&'_ Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: &Decimal) -> Self::Output
[src]
impl Div<Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: Decimal) -> Decimal
[src]
impl Div<Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self::Output
[src]
impl Div<f32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: f32) -> Self::Output
[src]
impl Div<f32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: f32) -> Self::Output
[src]
impl Div<f64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: f64) -> Self::Output
[src]
impl Div<f64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: f64) -> Self::Output
[src]
impl Div<i128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i128) -> Self::Output
[src]
impl Div<i128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i128) -> Self::Output
[src]
impl Div<i16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i16) -> Self::Output
[src]
impl Div<i16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i16) -> Self::Output
[src]
impl Div<i32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i32) -> Self::Output
[src]
impl Div<i32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i32) -> Self::Output
[src]
impl Div<i64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i64) -> Self::Output
[src]
impl Div<i64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i64) -> Self::Output
[src]
impl Div<i8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i8) -> Self::Output
[src]
impl Div<i8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: i8) -> Self::Output
[src]
impl Div<isize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: isize) -> Self::Output
[src]
impl Div<isize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: isize) -> Self::Output
[src]
impl Div<u128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u128) -> Self::Output
[src]
impl Div<u128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u128) -> Self::Output
[src]
impl Div<u16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u16) -> Self::Output
[src]
impl Div<u16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u16) -> Self::Output
[src]
impl Div<u32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u32) -> Self::Output
[src]
impl Div<u32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u32) -> Self::Output
[src]
impl Div<u64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u64) -> Self::Output
[src]
impl Div<u64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u64) -> Self::Output
[src]
impl Div<u8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u8) -> Self::Output
[src]
impl Div<u8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: u8) -> Self::Output
[src]
impl Div<usize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: usize) -> Self::Output
[src]
impl Div<usize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the /
operator.
fn div(self, other: usize) -> Self::Output
[src]
impl DivAssign<&'_ Decimal> for Decimal
[src]
fn div_assign(&mut self, other: &Decimal)
[src]
impl DivAssign<&'_ Decimal> for &mut Decimal
[src]
fn div_assign(&mut self, other: &Decimal)
[src]
impl DivAssign<Decimal> for Decimal
[src]
fn div_assign(&mut self, other: Decimal)
[src]
impl DivAssign<Decimal> for &mut Decimal
[src]
fn div_assign(&mut self, other: Decimal)
[src]
impl DivAssign<f32> for Decimal
[src]
fn div_assign(&mut self, other: f32)
[src]
impl DivAssign<f32> for &mut Decimal
[src]
fn div_assign(&mut self, other: f32)
[src]
impl DivAssign<f64> for Decimal
[src]
fn div_assign(&mut self, other: f64)
[src]
impl DivAssign<f64> for &mut Decimal
[src]
fn div_assign(&mut self, other: f64)
[src]
impl DivAssign<i128> for Decimal
[src]
fn div_assign(&mut self, other: i128)
[src]
impl DivAssign<i128> for &mut Decimal
[src]
fn div_assign(&mut self, other: i128)
[src]
impl DivAssign<i16> for Decimal
[src]
fn div_assign(&mut self, other: i16)
[src]
impl DivAssign<i16> for &mut Decimal
[src]
fn div_assign(&mut self, other: i16)
[src]
impl DivAssign<i32> for Decimal
[src]
fn div_assign(&mut self, other: i32)
[src]
impl DivAssign<i32> for &mut Decimal
[src]
fn div_assign(&mut self, other: i32)
[src]
impl DivAssign<i64> for Decimal
[src]
fn div_assign(&mut self, other: i64)
[src]
impl DivAssign<i64> for &mut Decimal
[src]
fn div_assign(&mut self, other: i64)
[src]
impl DivAssign<i8> for Decimal
[src]
fn div_assign(&mut self, other: i8)
[src]
impl DivAssign<i8> for &mut Decimal
[src]
fn div_assign(&mut self, other: i8)
[src]
impl DivAssign<isize> for Decimal
[src]
fn div_assign(&mut self, other: isize)
[src]
impl DivAssign<isize> for &mut Decimal
[src]
fn div_assign(&mut self, other: isize)
[src]
impl DivAssign<u128> for Decimal
[src]
fn div_assign(&mut self, other: u128)
[src]
impl DivAssign<u128> for &mut Decimal
[src]
fn div_assign(&mut self, other: u128)
[src]
impl DivAssign<u16> for Decimal
[src]
fn div_assign(&mut self, other: u16)
[src]
impl DivAssign<u16> for &mut Decimal
[src]
fn div_assign(&mut self, other: u16)
[src]
impl DivAssign<u32> for Decimal
[src]
fn div_assign(&mut self, other: u32)
[src]
impl DivAssign<u32> for &mut Decimal
[src]
fn div_assign(&mut self, other: u32)
[src]
impl DivAssign<u64> for Decimal
[src]
fn div_assign(&mut self, other: u64)
[src]
impl DivAssign<u64> for &mut Decimal
[src]
fn div_assign(&mut self, other: u64)
[src]
impl DivAssign<u8> for Decimal
[src]
fn div_assign(&mut self, other: u8)
[src]
impl DivAssign<u8> for &mut Decimal
[src]
fn div_assign(&mut self, other: u8)
[src]
impl DivAssign<usize> for Decimal
[src]
fn div_assign(&mut self, other: usize)
[src]
impl DivAssign<usize> for &mut Decimal
[src]
fn div_assign(&mut self, other: usize)
[src]
impl Eq for Decimal
[src]
impl From<bool> for Decimal
[src]
impl From<i16> for Decimal
[src]
impl From<i32> for Decimal
[src]
impl From<i64> for Decimal
[src]
impl From<i8> for Decimal
[src]
impl From<isize> for Decimal
[src]
impl From<u16> for Decimal
[src]
impl From<u32> for Decimal
[src]
impl From<u64> for Decimal
[src]
impl From<u8> for Decimal
[src]
impl From<usize> for Decimal
[src]
impl FromStr for Decimal
[src]
type Err = DecimalParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Decimal
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<&'_ Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: &Decimal) -> Self::Output
[src]
impl Mul<&'_ Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: &Decimal) -> Self::Output
[src]
impl Mul<Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: Decimal) -> Decimal
[src]
impl Mul<Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self::Output
[src]
impl Mul<f32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: f32) -> Self::Output
[src]
impl Mul<f32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: f32) -> Self::Output
[src]
impl Mul<f64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self::Output
[src]
impl Mul<f64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: f64) -> Self::Output
[src]
impl Mul<i128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i128) -> Self::Output
[src]
impl Mul<i128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i128) -> Self::Output
[src]
impl Mul<i16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i16) -> Self::Output
[src]
impl Mul<i16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i16) -> Self::Output
[src]
impl Mul<i32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Self::Output
[src]
impl Mul<i32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i32) -> Self::Output
[src]
impl Mul<i64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i64) -> Self::Output
[src]
impl Mul<i64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i64) -> Self::Output
[src]
impl Mul<i8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i8) -> Self::Output
[src]
impl Mul<i8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: i8) -> Self::Output
[src]
impl Mul<isize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: isize) -> Self::Output
[src]
impl Mul<isize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: isize) -> Self::Output
[src]
impl Mul<u128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u128) -> Self::Output
[src]
impl Mul<u128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u128) -> Self::Output
[src]
impl Mul<u16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u16) -> Self::Output
[src]
impl Mul<u16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u16) -> Self::Output
[src]
impl Mul<u32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u32) -> Self::Output
[src]
impl Mul<u32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u32) -> Self::Output
[src]
impl Mul<u64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u64) -> Self::Output
[src]
impl Mul<u64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u64) -> Self::Output
[src]
impl Mul<u8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u8) -> Self::Output
[src]
impl Mul<u8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: u8) -> Self::Output
[src]
impl Mul<usize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: usize) -> Self::Output
[src]
impl Mul<usize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the *
operator.
fn mul(self, other: usize) -> Self::Output
[src]
impl MulAssign<&'_ Decimal> for Decimal
[src]
fn mul_assign(&mut self, other: &Decimal)
[src]
impl MulAssign<&'_ Decimal> for &mut Decimal
[src]
fn mul_assign(&mut self, other: &Decimal)
[src]
impl MulAssign<Decimal> for Decimal
[src]
fn mul_assign(&mut self, other: Decimal)
[src]
impl MulAssign<Decimal> for &mut Decimal
[src]
fn mul_assign(&mut self, other: Decimal)
[src]
impl MulAssign<f32> for Decimal
[src]
fn mul_assign(&mut self, other: f32)
[src]
impl MulAssign<f32> for &mut Decimal
[src]
fn mul_assign(&mut self, other: f32)
[src]
impl MulAssign<f64> for Decimal
[src]
fn mul_assign(&mut self, other: f64)
[src]
impl MulAssign<f64> for &mut Decimal
[src]
fn mul_assign(&mut self, other: f64)
[src]
impl MulAssign<i128> for Decimal
[src]
fn mul_assign(&mut self, other: i128)
[src]
impl MulAssign<i128> for &mut Decimal
[src]
fn mul_assign(&mut self, other: i128)
[src]
impl MulAssign<i16> for Decimal
[src]
fn mul_assign(&mut self, other: i16)
[src]
impl MulAssign<i16> for &mut Decimal
[src]
fn mul_assign(&mut self, other: i16)
[src]
impl MulAssign<i32> for Decimal
[src]
fn mul_assign(&mut self, other: i32)
[src]
impl MulAssign<i32> for &mut Decimal
[src]
fn mul_assign(&mut self, other: i32)
[src]
impl MulAssign<i64> for Decimal
[src]
fn mul_assign(&mut self, other: i64)
[src]
impl MulAssign<i64> for &mut Decimal
[src]
fn mul_assign(&mut self, other: i64)
[src]
impl MulAssign<i8> for Decimal
[src]
fn mul_assign(&mut self, other: i8)
[src]
impl MulAssign<i8> for &mut Decimal
[src]
fn mul_assign(&mut self, other: i8)
[src]
impl MulAssign<isize> for Decimal
[src]
fn mul_assign(&mut self, other: isize)
[src]
impl MulAssign<isize> for &mut Decimal
[src]
fn mul_assign(&mut self, other: isize)
[src]
impl MulAssign<u128> for Decimal
[src]
fn mul_assign(&mut self, other: u128)
[src]
impl MulAssign<u128> for &mut Decimal
[src]
fn mul_assign(&mut self, other: u128)
[src]
impl MulAssign<u16> for Decimal
[src]
fn mul_assign(&mut self, other: u16)
[src]
impl MulAssign<u16> for &mut Decimal
[src]
fn mul_assign(&mut self, other: u16)
[src]
impl MulAssign<u32> for Decimal
[src]
fn mul_assign(&mut self, other: u32)
[src]
impl MulAssign<u32> for &mut Decimal
[src]
fn mul_assign(&mut self, other: u32)
[src]
impl MulAssign<u64> for Decimal
[src]
fn mul_assign(&mut self, other: u64)
[src]
impl MulAssign<u64> for &mut Decimal
[src]
fn mul_assign(&mut self, other: u64)
[src]
impl MulAssign<u8> for Decimal
[src]
fn mul_assign(&mut self, other: u8)
[src]
impl MulAssign<u8> for &mut Decimal
[src]
fn mul_assign(&mut self, other: u8)
[src]
impl MulAssign<usize> for Decimal
[src]
fn mul_assign(&mut self, other: usize)
[src]
impl MulAssign<usize> for &mut Decimal
[src]
fn mul_assign(&mut self, other: usize)
[src]
impl Neg for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn neg(mut self: Self) -> Self::Output
[src]
impl Neg for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Ord for Decimal
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<&'_ Decimal> for Decimal
[src]
fn eq(&self, other: &&Decimal) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Decimal> for Decimal
[src]
impl PartialEq<Decimal> for &Decimal
[src]
fn eq(&self, other: &Decimal) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<&'_ Decimal> for Decimal
[src]
fn partial_cmp(&self, other: &&Decimal) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Decimal> for Decimal
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Decimal> for &Decimal
[src]
fn partial_cmp(&self, other: &Decimal) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<&'_ Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: &Decimal) -> Self::Output
[src]
impl Rem<&'_ Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: &Decimal) -> Self::Output
[src]
impl Rem<Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: Decimal) -> Decimal
[src]
impl Rem<Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: Self) -> Self::Output
[src]
impl Rem<f32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: f32) -> Self::Output
[src]
impl Rem<f32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: f32) -> Self::Output
[src]
impl Rem<f64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: f64) -> Self::Output
[src]
impl Rem<f64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: f64) -> Self::Output
[src]
impl Rem<i128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i128) -> Self::Output
[src]
impl Rem<i128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i128) -> Self::Output
[src]
impl Rem<i16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i16) -> Self::Output
[src]
impl Rem<i16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i16) -> Self::Output
[src]
impl Rem<i32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i32) -> Self::Output
[src]
impl Rem<i32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i32) -> Self::Output
[src]
impl Rem<i64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i64) -> Self::Output
[src]
impl Rem<i64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i64) -> Self::Output
[src]
impl Rem<i8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i8) -> Self::Output
[src]
impl Rem<i8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: i8) -> Self::Output
[src]
impl Rem<isize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: isize) -> Self::Output
[src]
impl Rem<isize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: isize) -> Self::Output
[src]
impl Rem<u128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u128) -> Self::Output
[src]
impl Rem<u128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u128) -> Self::Output
[src]
impl Rem<u16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u16) -> Self::Output
[src]
impl Rem<u16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u16) -> Self::Output
[src]
impl Rem<u32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u32) -> Self::Output
[src]
impl Rem<u32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u32) -> Self::Output
[src]
impl Rem<u64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u64) -> Self::Output
[src]
impl Rem<u64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u64) -> Self::Output
[src]
impl Rem<u8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u8) -> Self::Output
[src]
impl Rem<u8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: u8) -> Self::Output
[src]
impl Rem<usize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: usize) -> Self::Output
[src]
impl Rem<usize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the %
operator.
fn rem(self, other: usize) -> Self::Output
[src]
impl RemAssign<&'_ Decimal> for Decimal
[src]
fn rem_assign(&mut self, other: &Decimal)
[src]
impl RemAssign<&'_ Decimal> for &mut Decimal
[src]
fn rem_assign(&mut self, other: &Decimal)
[src]
impl RemAssign<Decimal> for Decimal
[src]
fn rem_assign(&mut self, other: Decimal)
[src]
impl RemAssign<Decimal> for &mut Decimal
[src]
fn rem_assign(&mut self, other: Decimal)
[src]
impl RemAssign<f32> for Decimal
[src]
fn rem_assign(&mut self, other: f32)
[src]
impl RemAssign<f32> for &mut Decimal
[src]
fn rem_assign(&mut self, other: f32)
[src]
impl RemAssign<f64> for Decimal
[src]
fn rem_assign(&mut self, other: f64)
[src]
impl RemAssign<f64> for &mut Decimal
[src]
fn rem_assign(&mut self, other: f64)
[src]
impl RemAssign<i128> for Decimal
[src]
fn rem_assign(&mut self, other: i128)
[src]
impl RemAssign<i128> for &mut Decimal
[src]
fn rem_assign(&mut self, other: i128)
[src]
impl RemAssign<i16> for Decimal
[src]
fn rem_assign(&mut self, other: i16)
[src]
impl RemAssign<i16> for &mut Decimal
[src]
fn rem_assign(&mut self, other: i16)
[src]
impl RemAssign<i32> for Decimal
[src]
fn rem_assign(&mut self, other: i32)
[src]
impl RemAssign<i32> for &mut Decimal
[src]
fn rem_assign(&mut self, other: i32)
[src]
impl RemAssign<i64> for Decimal
[src]
fn rem_assign(&mut self, other: i64)
[src]
impl RemAssign<i64> for &mut Decimal
[src]
fn rem_assign(&mut self, other: i64)
[src]
impl RemAssign<i8> for Decimal
[src]
fn rem_assign(&mut self, other: i8)
[src]
impl RemAssign<i8> for &mut Decimal
[src]
fn rem_assign(&mut self, other: i8)
[src]
impl RemAssign<isize> for Decimal
[src]
fn rem_assign(&mut self, other: isize)
[src]
impl RemAssign<isize> for &mut Decimal
[src]
fn rem_assign(&mut self, other: isize)
[src]
impl RemAssign<u128> for Decimal
[src]
fn rem_assign(&mut self, other: u128)
[src]
impl RemAssign<u128> for &mut Decimal
[src]
fn rem_assign(&mut self, other: u128)
[src]
impl RemAssign<u16> for Decimal
[src]
fn rem_assign(&mut self, other: u16)
[src]
impl RemAssign<u16> for &mut Decimal
[src]
fn rem_assign(&mut self, other: u16)
[src]
impl RemAssign<u32> for Decimal
[src]
fn rem_assign(&mut self, other: u32)
[src]
impl RemAssign<u32> for &mut Decimal
[src]
fn rem_assign(&mut self, other: u32)
[src]
impl RemAssign<u64> for Decimal
[src]
fn rem_assign(&mut self, other: u64)
[src]
impl RemAssign<u64> for &mut Decimal
[src]
fn rem_assign(&mut self, other: u64)
[src]
impl RemAssign<u8> for Decimal
[src]
fn rem_assign(&mut self, other: u8)
[src]
impl RemAssign<u8> for &mut Decimal
[src]
fn rem_assign(&mut self, other: u8)
[src]
impl RemAssign<usize> for Decimal
[src]
fn rem_assign(&mut self, other: usize)
[src]
impl RemAssign<usize> for &mut Decimal
[src]
fn rem_assign(&mut self, other: usize)
[src]
impl StructuralEq for Decimal
[src]
impl Sub<&'_ Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: &Decimal) -> Self::Output
[src]
impl Sub<&'_ Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: &Decimal) -> Self::Output
[src]
impl Sub<Decimal> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: Decimal) -> Decimal
[src]
impl Sub<Decimal> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl Sub<f32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: f32) -> Self::Output
[src]
impl Sub<f32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: f32) -> Self::Output
[src]
impl Sub<f64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: f64) -> Self::Output
[src]
impl Sub<f64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: f64) -> Self::Output
[src]
impl Sub<i128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i128) -> Self::Output
[src]
impl Sub<i128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i128) -> Self::Output
[src]
impl Sub<i16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i16) -> Self::Output
[src]
impl Sub<i16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i16) -> Self::Output
[src]
impl Sub<i32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i32) -> Self::Output
[src]
impl Sub<i32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i32) -> Self::Output
[src]
impl Sub<i64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i64) -> Self::Output
[src]
impl Sub<i64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i64) -> Self::Output
[src]
impl Sub<i8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i8) -> Self::Output
[src]
impl Sub<i8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: i8) -> Self::Output
[src]
impl Sub<isize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: isize) -> Self::Output
[src]
impl Sub<isize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: isize) -> Self::Output
[src]
impl Sub<u128> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u128) -> Self::Output
[src]
impl Sub<u128> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u128) -> Self::Output
[src]
impl Sub<u16> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u16) -> Self::Output
[src]
impl Sub<u16> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u16) -> Self::Output
[src]
impl Sub<u32> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u32) -> Self::Output
[src]
impl Sub<u32> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u32) -> Self::Output
[src]
impl Sub<u64> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u64) -> Self::Output
[src]
impl Sub<u64> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u64) -> Self::Output
[src]
impl Sub<u8> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u8) -> Self::Output
[src]
impl Sub<u8> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: u8) -> Self::Output
[src]
impl Sub<usize> for Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: usize) -> Self::Output
[src]
impl Sub<usize> for &Decimal
[src]
type Output = Decimal
The resulting type after applying the -
operator.
fn sub(self, other: usize) -> Self::Output
[src]
impl SubAssign<&'_ Decimal> for Decimal
[src]
fn sub_assign(&mut self, other: &Decimal)
[src]
impl SubAssign<&'_ Decimal> for &mut Decimal
[src]
fn sub_assign(&mut self, other: &Decimal)
[src]
impl SubAssign<Decimal> for Decimal
[src]
fn sub_assign(&mut self, other: Decimal)
[src]
impl SubAssign<Decimal> for &mut Decimal
[src]
fn sub_assign(&mut self, other: Decimal)
[src]
impl SubAssign<f32> for Decimal
[src]
fn sub_assign(&mut self, other: f32)
[src]
impl SubAssign<f32> for &mut Decimal
[src]
fn sub_assign(&mut self, other: f32)
[src]
impl SubAssign<f64> for Decimal
[src]
fn sub_assign(&mut self, other: f64)
[src]
impl SubAssign<f64> for &mut Decimal
[src]
fn sub_assign(&mut self, other: f64)
[src]
impl SubAssign<i128> for Decimal
[src]
fn sub_assign(&mut self, other: i128)
[src]
impl SubAssign<i128> for &mut Decimal
[src]
fn sub_assign(&mut self, other: i128)
[src]
impl SubAssign<i16> for Decimal
[src]
fn sub_assign(&mut self, other: i16)
[src]
impl SubAssign<i16> for &mut Decimal
[src]
fn sub_assign(&mut self, other: i16)
[src]
impl SubAssign<i32> for Decimal
[src]
fn sub_assign(&mut self, other: i32)
[src]
impl SubAssign<i32> for &mut Decimal
[src]
fn sub_assign(&mut self, other: i32)
[src]
impl SubAssign<i64> for Decimal
[src]
fn sub_assign(&mut self, other: i64)
[src]
impl SubAssign<i64> for &mut Decimal
[src]
fn sub_assign(&mut self, other: i64)
[src]
impl SubAssign<i8> for Decimal
[src]
fn sub_assign(&mut self, other: i8)
[src]
impl SubAssign<i8> for &mut Decimal
[src]
fn sub_assign(&mut self, other: i8)
[src]
impl SubAssign<isize> for Decimal
[src]
fn sub_assign(&mut self, other: isize)
[src]
impl SubAssign<isize> for &mut Decimal
[src]
fn sub_assign(&mut self, other: isize)
[src]
impl SubAssign<u128> for Decimal
[src]
fn sub_assign(&mut self, other: u128)
[src]
impl SubAssign<u128> for &mut Decimal
[src]
fn sub_assign(&mut self, other: u128)
[src]
impl SubAssign<u16> for Decimal
[src]
fn sub_assign(&mut self, other: u16)
[src]
impl SubAssign<u16> for &mut Decimal
[src]
fn sub_assign(&mut self, other: u16)
[src]
impl SubAssign<u32> for Decimal
[src]
fn sub_assign(&mut self, other: u32)
[src]
impl SubAssign<u32> for &mut Decimal
[src]
fn sub_assign(&mut self, other: u32)
[src]
impl SubAssign<u64> for Decimal
[src]
fn sub_assign(&mut self, other: u64)
[src]
impl SubAssign<u64> for &mut Decimal
[src]
fn sub_assign(&mut self, other: u64)
[src]
impl SubAssign<u8> for Decimal
[src]
fn sub_assign(&mut self, other: u8)
[src]
impl SubAssign<u8> for &mut Decimal
[src]
fn sub_assign(&mut self, other: u8)
[src]
impl SubAssign<usize> for Decimal
[src]
fn sub_assign(&mut self, other: usize)
[src]
impl SubAssign<usize> for &mut Decimal
[src]
fn sub_assign(&mut self, other: usize)
[src]
impl TryFrom<f32> for Decimal
[src]
type Error = DecimalConvertError
The type returned in the event of a conversion error.
fn try_from(value: f32) -> Result<Self, Self::Error>
[src]
impl TryFrom<f64> for Decimal
[src]
type Error = DecimalConvertError
The type returned in the event of a conversion error.
fn try_from(value: f64) -> Result<Self, Self::Error>
[src]
impl TryFrom<i128> for Decimal
[src]
type Error = DecimalConvertError
The type returned in the event of a conversion error.
fn try_from(val: i128) -> Result<Self, Self::Error>
[src]
impl TryFrom<u128> for Decimal
[src]
Auto Trait Implementations
impl RefUnwindSafe for Decimal
[src]
impl Send for Decimal
[src]
impl Sync for Decimal
[src]
impl Unpin for Decimal
[src]
impl UnwindSafe for Decimal
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,