Struct decimal_rs::Decimal [−][src]
pub struct Decimal { /* fields omitted */ }Expand description
High precision decimal.
Implementations
impl Decimal[src]
impl Decimal[src]pub const unsafe fn from_parts_unchecked(
int_val: u128,
scale: i16,
negative: bool
) -> Decimal[src]
pub const unsafe fn from_parts_unchecked(
int_val: u128,
scale: i16,
negative: bool
) -> Decimal[src]Creates a Decimal from parts without boundary checking.
Safety
User have to guarantee that int_val has at most 38 tens digits and scale ranges from [-126, 130].
pub const fn from_parts(
int_val: u128,
scale: i16,
negative: bool
) -> Result<Decimal, DecimalConvertError>[src]
pub const fn from_parts(
int_val: u128,
scale: i16,
negative: bool
) -> Result<Decimal, DecimalConvertError>[src]Creates a Decimal from parts.
int_val has at most 38 tens digits, scale ranges from [-126, 130].
pub const fn into_parts(self) -> (u128, i16, bool)[src]
pub const fn into_parts(self) -> (u128, i16, bool)[src]Consumes the Decimal, returning (int_val, scale, negative).
pub fn precision(&self) -> u8[src]
pub fn precision(&self) -> u8[src]Returns the precision, i.e. the count of significant digits in this decimal.
pub const fn scale(&self) -> i16[src]
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]
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]
pub const fn is_sign_positive(&self) -> bool[src]Returns true if the sign bit of the decimal is positive.
pub fn encode<W: Write>(&self, writer: W) -> Result<usize>[src]
pub fn encode<W: Write>(&self, 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 compact_encode<W: Write>(&self, writer: W) -> Result<usize>[src]
pub fn compact_encode<W: Write>(&self, 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.
The only different from Decimal::encode is it will compact encoded bytes
when self is zero or small positive integer.
pub fn trunc(&self, scale: i16) -> Decimal[src]
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]
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]
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 checked_add(&self, other: Decimal) -> Option<Decimal>[src]
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]
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]
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]
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]
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 AddAssign<&'_ Decimal> for Decimal[src]
impl AddAssign<&'_ Decimal> for Decimal[src]fn add_assign(&mut self, other: &Decimal)[src]
fn add_assign(&mut self, other: &Decimal)[src]Performs the += operation. Read more
impl AddAssign<&'_ Decimal> for &mut Decimal[src]
impl AddAssign<&'_ Decimal> for &mut Decimal[src]fn add_assign(&mut self, other: &Decimal)[src]
fn add_assign(&mut self, other: &Decimal)[src]Performs the += operation. Read more
impl AddAssign<Decimal> for Decimal[src]
impl AddAssign<Decimal> for Decimal[src]fn add_assign(&mut self, other: Decimal)[src]
fn add_assign(&mut self, other: Decimal)[src]Performs the += operation. Read more
impl AddAssign<Decimal> for &mut Decimal[src]
impl AddAssign<Decimal> for &mut Decimal[src]fn add_assign(&mut self, other: Decimal)[src]
fn add_assign(&mut self, other: Decimal)[src]Performs the += operation. Read more
impl AddAssign<f32> for Decimal[src]
impl AddAssign<f32> for Decimal[src]fn add_assign(&mut self, other: f32)[src]
fn add_assign(&mut self, other: f32)[src]Performs the += operation. Read more
impl AddAssign<f32> for &mut Decimal[src]
impl AddAssign<f32> for &mut Decimal[src]fn add_assign(&mut self, other: f32)[src]
fn add_assign(&mut self, other: f32)[src]Performs the += operation. Read more
impl AddAssign<f64> for Decimal[src]
impl AddAssign<f64> for Decimal[src]fn add_assign(&mut self, other: f64)[src]
fn add_assign(&mut self, other: f64)[src]Performs the += operation. Read more
impl AddAssign<f64> for &mut Decimal[src]
impl AddAssign<f64> for &mut Decimal[src]fn add_assign(&mut self, other: f64)[src]
fn add_assign(&mut self, other: f64)[src]Performs the += operation. Read more
impl AddAssign<i128> for Decimal[src]
impl AddAssign<i128> for Decimal[src]fn add_assign(&mut self, other: i128)[src]
fn add_assign(&mut self, other: i128)[src]Performs the += operation. Read more
impl AddAssign<i128> for &mut Decimal[src]
impl AddAssign<i128> for &mut Decimal[src]fn add_assign(&mut self, other: i128)[src]
fn add_assign(&mut self, other: i128)[src]Performs the += operation. Read more
impl AddAssign<i16> for Decimal[src]
impl AddAssign<i16> for Decimal[src]fn add_assign(&mut self, other: i16)[src]
fn add_assign(&mut self, other: i16)[src]Performs the += operation. Read more
impl AddAssign<i16> for &mut Decimal[src]
impl AddAssign<i16> for &mut Decimal[src]fn add_assign(&mut self, other: i16)[src]
fn add_assign(&mut self, other: i16)[src]Performs the += operation. Read more
impl AddAssign<i32> for Decimal[src]
impl AddAssign<i32> for Decimal[src]fn add_assign(&mut self, other: i32)[src]
fn add_assign(&mut self, other: i32)[src]Performs the += operation. Read more
impl AddAssign<i32> for &mut Decimal[src]
impl AddAssign<i32> for &mut Decimal[src]fn add_assign(&mut self, other: i32)[src]
fn add_assign(&mut self, other: i32)[src]Performs the += operation. Read more
impl AddAssign<i64> for Decimal[src]
impl AddAssign<i64> for Decimal[src]fn add_assign(&mut self, other: i64)[src]
fn add_assign(&mut self, other: i64)[src]Performs the += operation. Read more
impl AddAssign<i64> for &mut Decimal[src]
impl AddAssign<i64> for &mut Decimal[src]fn add_assign(&mut self, other: i64)[src]
fn add_assign(&mut self, other: i64)[src]Performs the += operation. Read more
impl AddAssign<i8> for Decimal[src]
impl AddAssign<i8> for Decimal[src]fn add_assign(&mut self, other: i8)[src]
fn add_assign(&mut self, other: i8)[src]Performs the += operation. Read more
impl AddAssign<i8> for &mut Decimal[src]
impl AddAssign<i8> for &mut Decimal[src]fn add_assign(&mut self, other: i8)[src]
fn add_assign(&mut self, other: i8)[src]Performs the += operation. Read more
impl AddAssign<isize> for Decimal[src]
impl AddAssign<isize> for Decimal[src]fn add_assign(&mut self, other: isize)[src]
fn add_assign(&mut self, other: isize)[src]Performs the += operation. Read more
impl AddAssign<isize> for &mut Decimal[src]
impl AddAssign<isize> for &mut Decimal[src]fn add_assign(&mut self, other: isize)[src]
fn add_assign(&mut self, other: isize)[src]Performs the += operation. Read more
impl AddAssign<u128> for Decimal[src]
impl AddAssign<u128> for Decimal[src]fn add_assign(&mut self, other: u128)[src]
fn add_assign(&mut self, other: u128)[src]Performs the += operation. Read more
impl AddAssign<u128> for &mut Decimal[src]
impl AddAssign<u128> for &mut Decimal[src]fn add_assign(&mut self, other: u128)[src]
fn add_assign(&mut self, other: u128)[src]Performs the += operation. Read more
impl AddAssign<u16> for Decimal[src]
impl AddAssign<u16> for Decimal[src]fn add_assign(&mut self, other: u16)[src]
fn add_assign(&mut self, other: u16)[src]Performs the += operation. Read more
impl AddAssign<u16> for &mut Decimal[src]
impl AddAssign<u16> for &mut Decimal[src]fn add_assign(&mut self, other: u16)[src]
fn add_assign(&mut self, other: u16)[src]Performs the += operation. Read more
impl AddAssign<u32> for Decimal[src]
impl AddAssign<u32> for Decimal[src]fn add_assign(&mut self, other: u32)[src]
fn add_assign(&mut self, other: u32)[src]Performs the += operation. Read more
impl AddAssign<u32> for &mut Decimal[src]
impl AddAssign<u32> for &mut Decimal[src]fn add_assign(&mut self, other: u32)[src]
fn add_assign(&mut self, other: u32)[src]Performs the += operation. Read more
impl AddAssign<u64> for Decimal[src]
impl AddAssign<u64> for Decimal[src]fn add_assign(&mut self, other: u64)[src]
fn add_assign(&mut self, other: u64)[src]Performs the += operation. Read more
impl AddAssign<u64> for &mut Decimal[src]
impl AddAssign<u64> for &mut Decimal[src]fn add_assign(&mut self, other: u64)[src]
fn add_assign(&mut self, other: u64)[src]Performs the += operation. Read more
impl AddAssign<u8> for Decimal[src]
impl AddAssign<u8> for Decimal[src]fn add_assign(&mut self, other: u8)[src]
fn add_assign(&mut self, other: u8)[src]Performs the += operation. Read more
impl AddAssign<u8> for &mut Decimal[src]
impl AddAssign<u8> for &mut Decimal[src]fn add_assign(&mut self, other: u8)[src]
fn add_assign(&mut self, other: u8)[src]Performs the += operation. Read more
impl AddAssign<usize> for Decimal[src]
impl AddAssign<usize> for Decimal[src]fn add_assign(&mut self, other: usize)[src]
fn add_assign(&mut self, other: usize)[src]Performs the += operation. Read more
impl AddAssign<usize> for &mut Decimal[src]
impl AddAssign<usize> for &mut Decimal[src]fn add_assign(&mut self, other: usize)[src]
fn add_assign(&mut self, other: usize)[src]Performs the += operation. Read more
impl DivAssign<&'_ Decimal> for Decimal[src]
impl DivAssign<&'_ Decimal> for Decimal[src]fn div_assign(&mut self, other: &Decimal)[src]
fn div_assign(&mut self, other: &Decimal)[src]Performs the /= operation. Read more
impl DivAssign<&'_ Decimal> for &mut Decimal[src]
impl DivAssign<&'_ Decimal> for &mut Decimal[src]fn div_assign(&mut self, other: &Decimal)[src]
fn div_assign(&mut self, other: &Decimal)[src]Performs the /= operation. Read more
impl DivAssign<Decimal> for Decimal[src]
impl DivAssign<Decimal> for Decimal[src]fn div_assign(&mut self, other: Decimal)[src]
fn div_assign(&mut self, other: Decimal)[src]Performs the /= operation. Read more
impl DivAssign<Decimal> for &mut Decimal[src]
impl DivAssign<Decimal> for &mut Decimal[src]fn div_assign(&mut self, other: Decimal)[src]
fn div_assign(&mut self, other: Decimal)[src]Performs the /= operation. Read more
impl DivAssign<f32> for Decimal[src]
impl DivAssign<f32> for Decimal[src]fn div_assign(&mut self, other: f32)[src]
fn div_assign(&mut self, other: f32)[src]Performs the /= operation. Read more
impl DivAssign<f32> for &mut Decimal[src]
impl DivAssign<f32> for &mut Decimal[src]fn div_assign(&mut self, other: f32)[src]
fn div_assign(&mut self, other: f32)[src]Performs the /= operation. Read more
impl DivAssign<f64> for Decimal[src]
impl DivAssign<f64> for Decimal[src]fn div_assign(&mut self, other: f64)[src]
fn div_assign(&mut self, other: f64)[src]Performs the /= operation. Read more
impl DivAssign<f64> for &mut Decimal[src]
impl DivAssign<f64> for &mut Decimal[src]fn div_assign(&mut self, other: f64)[src]
fn div_assign(&mut self, other: f64)[src]Performs the /= operation. Read more
impl DivAssign<i128> for Decimal[src]
impl DivAssign<i128> for Decimal[src]fn div_assign(&mut self, other: i128)[src]
fn div_assign(&mut self, other: i128)[src]Performs the /= operation. Read more
impl DivAssign<i128> for &mut Decimal[src]
impl DivAssign<i128> for &mut Decimal[src]fn div_assign(&mut self, other: i128)[src]
fn div_assign(&mut self, other: i128)[src]Performs the /= operation. Read more
impl DivAssign<i16> for Decimal[src]
impl DivAssign<i16> for Decimal[src]fn div_assign(&mut self, other: i16)[src]
fn div_assign(&mut self, other: i16)[src]Performs the /= operation. Read more
impl DivAssign<i16> for &mut Decimal[src]
impl DivAssign<i16> for &mut Decimal[src]fn div_assign(&mut self, other: i16)[src]
fn div_assign(&mut self, other: i16)[src]Performs the /= operation. Read more
impl DivAssign<i32> for Decimal[src]
impl DivAssign<i32> for Decimal[src]fn div_assign(&mut self, other: i32)[src]
fn div_assign(&mut self, other: i32)[src]Performs the /= operation. Read more
impl DivAssign<i32> for &mut Decimal[src]
impl DivAssign<i32> for &mut Decimal[src]fn div_assign(&mut self, other: i32)[src]
fn div_assign(&mut self, other: i32)[src]Performs the /= operation. Read more
impl DivAssign<i64> for Decimal[src]
impl DivAssign<i64> for Decimal[src]fn div_assign(&mut self, other: i64)[src]
fn div_assign(&mut self, other: i64)[src]Performs the /= operation. Read more
impl DivAssign<i64> for &mut Decimal[src]
impl DivAssign<i64> for &mut Decimal[src]fn div_assign(&mut self, other: i64)[src]
fn div_assign(&mut self, other: i64)[src]Performs the /= operation. Read more
impl DivAssign<i8> for Decimal[src]
impl DivAssign<i8> for Decimal[src]fn div_assign(&mut self, other: i8)[src]
fn div_assign(&mut self, other: i8)[src]Performs the /= operation. Read more
impl DivAssign<i8> for &mut Decimal[src]
impl DivAssign<i8> for &mut Decimal[src]fn div_assign(&mut self, other: i8)[src]
fn div_assign(&mut self, other: i8)[src]Performs the /= operation. Read more
impl DivAssign<isize> for Decimal[src]
impl DivAssign<isize> for Decimal[src]fn div_assign(&mut self, other: isize)[src]
fn div_assign(&mut self, other: isize)[src]Performs the /= operation. Read more
impl DivAssign<isize> for &mut Decimal[src]
impl DivAssign<isize> for &mut Decimal[src]fn div_assign(&mut self, other: isize)[src]
fn div_assign(&mut self, other: isize)[src]Performs the /= operation. Read more
impl DivAssign<u128> for Decimal[src]
impl DivAssign<u128> for Decimal[src]fn div_assign(&mut self, other: u128)[src]
fn div_assign(&mut self, other: u128)[src]Performs the /= operation. Read more
impl DivAssign<u128> for &mut Decimal[src]
impl DivAssign<u128> for &mut Decimal[src]fn div_assign(&mut self, other: u128)[src]
fn div_assign(&mut self, other: u128)[src]Performs the /= operation. Read more
impl DivAssign<u16> for Decimal[src]
impl DivAssign<u16> for Decimal[src]fn div_assign(&mut self, other: u16)[src]
fn div_assign(&mut self, other: u16)[src]Performs the /= operation. Read more
impl DivAssign<u16> for &mut Decimal[src]
impl DivAssign<u16> for &mut Decimal[src]fn div_assign(&mut self, other: u16)[src]
fn div_assign(&mut self, other: u16)[src]Performs the /= operation. Read more
impl DivAssign<u32> for Decimal[src]
impl DivAssign<u32> for Decimal[src]fn div_assign(&mut self, other: u32)[src]
fn div_assign(&mut self, other: u32)[src]Performs the /= operation. Read more
impl DivAssign<u32> for &mut Decimal[src]
impl DivAssign<u32> for &mut Decimal[src]fn div_assign(&mut self, other: u32)[src]
fn div_assign(&mut self, other: u32)[src]Performs the /= operation. Read more
impl DivAssign<u64> for Decimal[src]
impl DivAssign<u64> for Decimal[src]fn div_assign(&mut self, other: u64)[src]
fn div_assign(&mut self, other: u64)[src]Performs the /= operation. Read more
impl DivAssign<u64> for &mut Decimal[src]
impl DivAssign<u64> for &mut Decimal[src]fn div_assign(&mut self, other: u64)[src]
fn div_assign(&mut self, other: u64)[src]Performs the /= operation. Read more
impl DivAssign<u8> for Decimal[src]
impl DivAssign<u8> for Decimal[src]fn div_assign(&mut self, other: u8)[src]
fn div_assign(&mut self, other: u8)[src]Performs the /= operation. Read more
impl DivAssign<u8> for &mut Decimal[src]
impl DivAssign<u8> for &mut Decimal[src]fn div_assign(&mut self, other: u8)[src]
fn div_assign(&mut self, other: u8)[src]Performs the /= operation. Read more
impl DivAssign<usize> for Decimal[src]
impl DivAssign<usize> for Decimal[src]fn div_assign(&mut self, other: usize)[src]
fn div_assign(&mut self, other: usize)[src]Performs the /= operation. Read more
impl DivAssign<usize> for &mut Decimal[src]
impl DivAssign<usize> for &mut Decimal[src]fn div_assign(&mut self, other: usize)[src]
fn div_assign(&mut self, other: usize)[src]Performs the /= operation. Read more
impl MulAssign<&'_ Decimal> for Decimal[src]
impl MulAssign<&'_ Decimal> for Decimal[src]fn mul_assign(&mut self, other: &Decimal)[src]
fn mul_assign(&mut self, other: &Decimal)[src]Performs the *= operation. Read more
impl MulAssign<&'_ Decimal> for &mut Decimal[src]
impl MulAssign<&'_ Decimal> for &mut Decimal[src]fn mul_assign(&mut self, other: &Decimal)[src]
fn mul_assign(&mut self, other: &Decimal)[src]Performs the *= operation. Read more
impl MulAssign<Decimal> for Decimal[src]
impl MulAssign<Decimal> for Decimal[src]fn mul_assign(&mut self, other: Decimal)[src]
fn mul_assign(&mut self, other: Decimal)[src]Performs the *= operation. Read more
impl MulAssign<Decimal> for &mut Decimal[src]
impl MulAssign<Decimal> for &mut Decimal[src]fn mul_assign(&mut self, other: Decimal)[src]
fn mul_assign(&mut self, other: Decimal)[src]Performs the *= operation. Read more
impl MulAssign<f32> for Decimal[src]
impl MulAssign<f32> for Decimal[src]fn mul_assign(&mut self, other: f32)[src]
fn mul_assign(&mut self, other: f32)[src]Performs the *= operation. Read more
impl MulAssign<f32> for &mut Decimal[src]
impl MulAssign<f32> for &mut Decimal[src]fn mul_assign(&mut self, other: f32)[src]
fn mul_assign(&mut self, other: f32)[src]Performs the *= operation. Read more
impl MulAssign<f64> for Decimal[src]
impl MulAssign<f64> for Decimal[src]fn mul_assign(&mut self, other: f64)[src]
fn mul_assign(&mut self, other: f64)[src]Performs the *= operation. Read more
impl MulAssign<f64> for &mut Decimal[src]
impl MulAssign<f64> for &mut Decimal[src]fn mul_assign(&mut self, other: f64)[src]
fn mul_assign(&mut self, other: f64)[src]Performs the *= operation. Read more
impl MulAssign<i128> for Decimal[src]
impl MulAssign<i128> for Decimal[src]fn mul_assign(&mut self, other: i128)[src]
fn mul_assign(&mut self, other: i128)[src]Performs the *= operation. Read more
impl MulAssign<i128> for &mut Decimal[src]
impl MulAssign<i128> for &mut Decimal[src]fn mul_assign(&mut self, other: i128)[src]
fn mul_assign(&mut self, other: i128)[src]Performs the *= operation. Read more
impl MulAssign<i16> for Decimal[src]
impl MulAssign<i16> for Decimal[src]fn mul_assign(&mut self, other: i16)[src]
fn mul_assign(&mut self, other: i16)[src]Performs the *= operation. Read more
impl MulAssign<i16> for &mut Decimal[src]
impl MulAssign<i16> for &mut Decimal[src]fn mul_assign(&mut self, other: i16)[src]
fn mul_assign(&mut self, other: i16)[src]Performs the *= operation. Read more
impl MulAssign<i32> for Decimal[src]
impl MulAssign<i32> for Decimal[src]fn mul_assign(&mut self, other: i32)[src]
fn mul_assign(&mut self, other: i32)[src]Performs the *= operation. Read more
impl MulAssign<i32> for &mut Decimal[src]
impl MulAssign<i32> for &mut Decimal[src]fn mul_assign(&mut self, other: i32)[src]
fn mul_assign(&mut self, other: i32)[src]Performs the *= operation. Read more
impl MulAssign<i64> for Decimal[src]
impl MulAssign<i64> for Decimal[src]fn mul_assign(&mut self, other: i64)[src]
fn mul_assign(&mut self, other: i64)[src]Performs the *= operation. Read more
impl MulAssign<i64> for &mut Decimal[src]
impl MulAssign<i64> for &mut Decimal[src]fn mul_assign(&mut self, other: i64)[src]
fn mul_assign(&mut self, other: i64)[src]Performs the *= operation. Read more
impl MulAssign<i8> for Decimal[src]
impl MulAssign<i8> for Decimal[src]fn mul_assign(&mut self, other: i8)[src]
fn mul_assign(&mut self, other: i8)[src]Performs the *= operation. Read more
impl MulAssign<i8> for &mut Decimal[src]
impl MulAssign<i8> for &mut Decimal[src]fn mul_assign(&mut self, other: i8)[src]
fn mul_assign(&mut self, other: i8)[src]Performs the *= operation. Read more
impl MulAssign<isize> for Decimal[src]
impl MulAssign<isize> for Decimal[src]fn mul_assign(&mut self, other: isize)[src]
fn mul_assign(&mut self, other: isize)[src]Performs the *= operation. Read more
impl MulAssign<isize> for &mut Decimal[src]
impl MulAssign<isize> for &mut Decimal[src]fn mul_assign(&mut self, other: isize)[src]
fn mul_assign(&mut self, other: isize)[src]Performs the *= operation. Read more
impl MulAssign<u128> for Decimal[src]
impl MulAssign<u128> for Decimal[src]fn mul_assign(&mut self, other: u128)[src]
fn mul_assign(&mut self, other: u128)[src]Performs the *= operation. Read more
impl MulAssign<u128> for &mut Decimal[src]
impl MulAssign<u128> for &mut Decimal[src]fn mul_assign(&mut self, other: u128)[src]
fn mul_assign(&mut self, other: u128)[src]Performs the *= operation. Read more
impl MulAssign<u16> for Decimal[src]
impl MulAssign<u16> for Decimal[src]fn mul_assign(&mut self, other: u16)[src]
fn mul_assign(&mut self, other: u16)[src]Performs the *= operation. Read more
impl MulAssign<u16> for &mut Decimal[src]
impl MulAssign<u16> for &mut Decimal[src]fn mul_assign(&mut self, other: u16)[src]
fn mul_assign(&mut self, other: u16)[src]Performs the *= operation. Read more
impl MulAssign<u32> for Decimal[src]
impl MulAssign<u32> for Decimal[src]fn mul_assign(&mut self, other: u32)[src]
fn mul_assign(&mut self, other: u32)[src]Performs the *= operation. Read more
impl MulAssign<u32> for &mut Decimal[src]
impl MulAssign<u32> for &mut Decimal[src]fn mul_assign(&mut self, other: u32)[src]
fn mul_assign(&mut self, other: u32)[src]Performs the *= operation. Read more
impl MulAssign<u64> for Decimal[src]
impl MulAssign<u64> for Decimal[src]fn mul_assign(&mut self, other: u64)[src]
fn mul_assign(&mut self, other: u64)[src]Performs the *= operation. Read more
impl MulAssign<u64> for &mut Decimal[src]
impl MulAssign<u64> for &mut Decimal[src]fn mul_assign(&mut self, other: u64)[src]
fn mul_assign(&mut self, other: u64)[src]Performs the *= operation. Read more
impl MulAssign<u8> for Decimal[src]
impl MulAssign<u8> for Decimal[src]fn mul_assign(&mut self, other: u8)[src]
fn mul_assign(&mut self, other: u8)[src]Performs the *= operation. Read more
impl MulAssign<u8> for &mut Decimal[src]
impl MulAssign<u8> for &mut Decimal[src]fn mul_assign(&mut self, other: u8)[src]
fn mul_assign(&mut self, other: u8)[src]Performs the *= operation. Read more
impl MulAssign<usize> for Decimal[src]
impl MulAssign<usize> for Decimal[src]fn mul_assign(&mut self, other: usize)[src]
fn mul_assign(&mut self, other: usize)[src]Performs the *= operation. Read more
impl MulAssign<usize> for &mut Decimal[src]
impl MulAssign<usize> for &mut Decimal[src]fn mul_assign(&mut self, other: usize)[src]
fn mul_assign(&mut self, other: usize)[src]Performs the *= operation. Read more
impl Ord for Decimal[src]
impl Ord for Decimal[src]impl PartialOrd<&'_ Decimal> for Decimal[src]
impl PartialOrd<&'_ Decimal> for Decimal[src]fn partial_cmp(&self, other: &&Decimal) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&Decimal) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl PartialOrd<Decimal> for Decimal[src]
impl PartialOrd<Decimal> for Decimal[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl PartialOrd<Decimal> for &Decimal[src]
impl PartialOrd<Decimal> for &Decimal[src]fn partial_cmp(&self, other: &Decimal) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Decimal) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl RemAssign<&'_ Decimal> for Decimal[src]
impl RemAssign<&'_ Decimal> for Decimal[src]fn rem_assign(&mut self, other: &Decimal)[src]
fn rem_assign(&mut self, other: &Decimal)[src]Performs the %= operation. Read more
impl RemAssign<&'_ Decimal> for &mut Decimal[src]
impl RemAssign<&'_ Decimal> for &mut Decimal[src]fn rem_assign(&mut self, other: &Decimal)[src]
fn rem_assign(&mut self, other: &Decimal)[src]Performs the %= operation. Read more
impl RemAssign<Decimal> for Decimal[src]
impl RemAssign<Decimal> for Decimal[src]fn rem_assign(&mut self, other: Decimal)[src]
fn rem_assign(&mut self, other: Decimal)[src]Performs the %= operation. Read more
impl RemAssign<Decimal> for &mut Decimal[src]
impl RemAssign<Decimal> for &mut Decimal[src]fn rem_assign(&mut self, other: Decimal)[src]
fn rem_assign(&mut self, other: Decimal)[src]Performs the %= operation. Read more
impl RemAssign<f32> for Decimal[src]
impl RemAssign<f32> for Decimal[src]fn rem_assign(&mut self, other: f32)[src]
fn rem_assign(&mut self, other: f32)[src]Performs the %= operation. Read more
impl RemAssign<f32> for &mut Decimal[src]
impl RemAssign<f32> for &mut Decimal[src]fn rem_assign(&mut self, other: f32)[src]
fn rem_assign(&mut self, other: f32)[src]Performs the %= operation. Read more
impl RemAssign<f64> for Decimal[src]
impl RemAssign<f64> for Decimal[src]fn rem_assign(&mut self, other: f64)[src]
fn rem_assign(&mut self, other: f64)[src]Performs the %= operation. Read more
impl RemAssign<f64> for &mut Decimal[src]
impl RemAssign<f64> for &mut Decimal[src]fn rem_assign(&mut self, other: f64)[src]
fn rem_assign(&mut self, other: f64)[src]Performs the %= operation. Read more
impl RemAssign<i128> for Decimal[src]
impl RemAssign<i128> for Decimal[src]fn rem_assign(&mut self, other: i128)[src]
fn rem_assign(&mut self, other: i128)[src]Performs the %= operation. Read more
impl RemAssign<i128> for &mut Decimal[src]
impl RemAssign<i128> for &mut Decimal[src]fn rem_assign(&mut self, other: i128)[src]
fn rem_assign(&mut self, other: i128)[src]Performs the %= operation. Read more
impl RemAssign<i16> for Decimal[src]
impl RemAssign<i16> for Decimal[src]fn rem_assign(&mut self, other: i16)[src]
fn rem_assign(&mut self, other: i16)[src]Performs the %= operation. Read more
impl RemAssign<i16> for &mut Decimal[src]
impl RemAssign<i16> for &mut Decimal[src]fn rem_assign(&mut self, other: i16)[src]
fn rem_assign(&mut self, other: i16)[src]Performs the %= operation. Read more
impl RemAssign<i32> for Decimal[src]
impl RemAssign<i32> for Decimal[src]fn rem_assign(&mut self, other: i32)[src]
fn rem_assign(&mut self, other: i32)[src]Performs the %= operation. Read more
impl RemAssign<i32> for &mut Decimal[src]
impl RemAssign<i32> for &mut Decimal[src]fn rem_assign(&mut self, other: i32)[src]
fn rem_assign(&mut self, other: i32)[src]Performs the %= operation. Read more
impl RemAssign<i64> for Decimal[src]
impl RemAssign<i64> for Decimal[src]fn rem_assign(&mut self, other: i64)[src]
fn rem_assign(&mut self, other: i64)[src]Performs the %= operation. Read more
impl RemAssign<i64> for &mut Decimal[src]
impl RemAssign<i64> for &mut Decimal[src]fn rem_assign(&mut self, other: i64)[src]
fn rem_assign(&mut self, other: i64)[src]Performs the %= operation. Read more
impl RemAssign<i8> for Decimal[src]
impl RemAssign<i8> for Decimal[src]fn rem_assign(&mut self, other: i8)[src]
fn rem_assign(&mut self, other: i8)[src]Performs the %= operation. Read more
impl RemAssign<i8> for &mut Decimal[src]
impl RemAssign<i8> for &mut Decimal[src]fn rem_assign(&mut self, other: i8)[src]
fn rem_assign(&mut self, other: i8)[src]Performs the %= operation. Read more
impl RemAssign<isize> for Decimal[src]
impl RemAssign<isize> for Decimal[src]fn rem_assign(&mut self, other: isize)[src]
fn rem_assign(&mut self, other: isize)[src]Performs the %= operation. Read more
impl RemAssign<isize> for &mut Decimal[src]
impl RemAssign<isize> for &mut Decimal[src]fn rem_assign(&mut self, other: isize)[src]
fn rem_assign(&mut self, other: isize)[src]Performs the %= operation. Read more
impl RemAssign<u128> for Decimal[src]
impl RemAssign<u128> for Decimal[src]fn rem_assign(&mut self, other: u128)[src]
fn rem_assign(&mut self, other: u128)[src]Performs the %= operation. Read more
impl RemAssign<u128> for &mut Decimal[src]
impl RemAssign<u128> for &mut Decimal[src]fn rem_assign(&mut self, other: u128)[src]
fn rem_assign(&mut self, other: u128)[src]Performs the %= operation. Read more
impl RemAssign<u16> for Decimal[src]
impl RemAssign<u16> for Decimal[src]fn rem_assign(&mut self, other: u16)[src]
fn rem_assign(&mut self, other: u16)[src]Performs the %= operation. Read more
impl RemAssign<u16> for &mut Decimal[src]
impl RemAssign<u16> for &mut Decimal[src]fn rem_assign(&mut self, other: u16)[src]
fn rem_assign(&mut self, other: u16)[src]Performs the %= operation. Read more
impl RemAssign<u32> for Decimal[src]
impl RemAssign<u32> for Decimal[src]fn rem_assign(&mut self, other: u32)[src]
fn rem_assign(&mut self, other: u32)[src]Performs the %= operation. Read more
impl RemAssign<u32> for &mut Decimal[src]
impl RemAssign<u32> for &mut Decimal[src]fn rem_assign(&mut self, other: u32)[src]
fn rem_assign(&mut self, other: u32)[src]Performs the %= operation. Read more
impl RemAssign<u64> for Decimal[src]
impl RemAssign<u64> for Decimal[src]fn rem_assign(&mut self, other: u64)[src]
fn rem_assign(&mut self, other: u64)[src]Performs the %= operation. Read more
impl RemAssign<u64> for &mut Decimal[src]
impl RemAssign<u64> for &mut Decimal[src]fn rem_assign(&mut self, other: u64)[src]
fn rem_assign(&mut self, other: u64)[src]Performs the %= operation. Read more
impl RemAssign<u8> for Decimal[src]
impl RemAssign<u8> for Decimal[src]fn rem_assign(&mut self, other: u8)[src]
fn rem_assign(&mut self, other: u8)[src]Performs the %= operation. Read more
impl RemAssign<u8> for &mut Decimal[src]
impl RemAssign<u8> for &mut Decimal[src]fn rem_assign(&mut self, other: u8)[src]
fn rem_assign(&mut self, other: u8)[src]Performs the %= operation. Read more
impl RemAssign<usize> for Decimal[src]
impl RemAssign<usize> for Decimal[src]fn rem_assign(&mut self, other: usize)[src]
fn rem_assign(&mut self, other: usize)[src]Performs the %= operation. Read more
impl RemAssign<usize> for &mut Decimal[src]
impl RemAssign<usize> for &mut Decimal[src]fn rem_assign(&mut self, other: usize)[src]
fn rem_assign(&mut self, other: usize)[src]Performs the %= operation. Read more
impl SubAssign<&'_ Decimal> for Decimal[src]
impl SubAssign<&'_ Decimal> for Decimal[src]fn sub_assign(&mut self, other: &Decimal)[src]
fn sub_assign(&mut self, other: &Decimal)[src]Performs the -= operation. Read more
impl SubAssign<&'_ Decimal> for &mut Decimal[src]
impl SubAssign<&'_ Decimal> for &mut Decimal[src]fn sub_assign(&mut self, other: &Decimal)[src]
fn sub_assign(&mut self, other: &Decimal)[src]Performs the -= operation. Read more
impl SubAssign<Decimal> for Decimal[src]
impl SubAssign<Decimal> for Decimal[src]fn sub_assign(&mut self, other: Decimal)[src]
fn sub_assign(&mut self, other: Decimal)[src]Performs the -= operation. Read more
impl SubAssign<Decimal> for &mut Decimal[src]
impl SubAssign<Decimal> for &mut Decimal[src]fn sub_assign(&mut self, other: Decimal)[src]
fn sub_assign(&mut self, other: Decimal)[src]Performs the -= operation. Read more
impl SubAssign<f32> for Decimal[src]
impl SubAssign<f32> for Decimal[src]fn sub_assign(&mut self, other: f32)[src]
fn sub_assign(&mut self, other: f32)[src]Performs the -= operation. Read more
impl SubAssign<f32> for &mut Decimal[src]
impl SubAssign<f32> for &mut Decimal[src]fn sub_assign(&mut self, other: f32)[src]
fn sub_assign(&mut self, other: f32)[src]Performs the -= operation. Read more
impl SubAssign<f64> for Decimal[src]
impl SubAssign<f64> for Decimal[src]fn sub_assign(&mut self, other: f64)[src]
fn sub_assign(&mut self, other: f64)[src]Performs the -= operation. Read more
impl SubAssign<f64> for &mut Decimal[src]
impl SubAssign<f64> for &mut Decimal[src]fn sub_assign(&mut self, other: f64)[src]
fn sub_assign(&mut self, other: f64)[src]Performs the -= operation. Read more
impl SubAssign<i128> for Decimal[src]
impl SubAssign<i128> for Decimal[src]fn sub_assign(&mut self, other: i128)[src]
fn sub_assign(&mut self, other: i128)[src]Performs the -= operation. Read more
impl SubAssign<i128> for &mut Decimal[src]
impl SubAssign<i128> for &mut Decimal[src]fn sub_assign(&mut self, other: i128)[src]
fn sub_assign(&mut self, other: i128)[src]Performs the -= operation. Read more
impl SubAssign<i16> for Decimal[src]
impl SubAssign<i16> for Decimal[src]fn sub_assign(&mut self, other: i16)[src]
fn sub_assign(&mut self, other: i16)[src]Performs the -= operation. Read more
impl SubAssign<i16> for &mut Decimal[src]
impl SubAssign<i16> for &mut Decimal[src]fn sub_assign(&mut self, other: i16)[src]
fn sub_assign(&mut self, other: i16)[src]Performs the -= operation. Read more
impl SubAssign<i32> for Decimal[src]
impl SubAssign<i32> for Decimal[src]fn sub_assign(&mut self, other: i32)[src]
fn sub_assign(&mut self, other: i32)[src]Performs the -= operation. Read more
impl SubAssign<i32> for &mut Decimal[src]
impl SubAssign<i32> for &mut Decimal[src]fn sub_assign(&mut self, other: i32)[src]
fn sub_assign(&mut self, other: i32)[src]Performs the -= operation. Read more
impl SubAssign<i64> for Decimal[src]
impl SubAssign<i64> for Decimal[src]fn sub_assign(&mut self, other: i64)[src]
fn sub_assign(&mut self, other: i64)[src]Performs the -= operation. Read more
impl SubAssign<i64> for &mut Decimal[src]
impl SubAssign<i64> for &mut Decimal[src]fn sub_assign(&mut self, other: i64)[src]
fn sub_assign(&mut self, other: i64)[src]Performs the -= operation. Read more
impl SubAssign<i8> for Decimal[src]
impl SubAssign<i8> for Decimal[src]fn sub_assign(&mut self, other: i8)[src]
fn sub_assign(&mut self, other: i8)[src]Performs the -= operation. Read more
impl SubAssign<i8> for &mut Decimal[src]
impl SubAssign<i8> for &mut Decimal[src]fn sub_assign(&mut self, other: i8)[src]
fn sub_assign(&mut self, other: i8)[src]Performs the -= operation. Read more
impl SubAssign<isize> for Decimal[src]
impl SubAssign<isize> for Decimal[src]fn sub_assign(&mut self, other: isize)[src]
fn sub_assign(&mut self, other: isize)[src]Performs the -= operation. Read more
impl SubAssign<isize> for &mut Decimal[src]
impl SubAssign<isize> for &mut Decimal[src]fn sub_assign(&mut self, other: isize)[src]
fn sub_assign(&mut self, other: isize)[src]Performs the -= operation. Read more
impl SubAssign<u128> for Decimal[src]
impl SubAssign<u128> for Decimal[src]fn sub_assign(&mut self, other: u128)[src]
fn sub_assign(&mut self, other: u128)[src]Performs the -= operation. Read more
impl SubAssign<u128> for &mut Decimal[src]
impl SubAssign<u128> for &mut Decimal[src]fn sub_assign(&mut self, other: u128)[src]
fn sub_assign(&mut self, other: u128)[src]Performs the -= operation. Read more
impl SubAssign<u16> for Decimal[src]
impl SubAssign<u16> for Decimal[src]fn sub_assign(&mut self, other: u16)[src]
fn sub_assign(&mut self, other: u16)[src]Performs the -= operation. Read more
impl SubAssign<u16> for &mut Decimal[src]
impl SubAssign<u16> for &mut Decimal[src]fn sub_assign(&mut self, other: u16)[src]
fn sub_assign(&mut self, other: u16)[src]Performs the -= operation. Read more
impl SubAssign<u32> for Decimal[src]
impl SubAssign<u32> for Decimal[src]fn sub_assign(&mut self, other: u32)[src]
fn sub_assign(&mut self, other: u32)[src]Performs the -= operation. Read more
impl SubAssign<u32> for &mut Decimal[src]
impl SubAssign<u32> for &mut Decimal[src]fn sub_assign(&mut self, other: u32)[src]
fn sub_assign(&mut self, other: u32)[src]Performs the -= operation. Read more
impl SubAssign<u64> for Decimal[src]
impl SubAssign<u64> for Decimal[src]fn sub_assign(&mut self, other: u64)[src]
fn sub_assign(&mut self, other: u64)[src]Performs the -= operation. Read more
impl SubAssign<u64> for &mut Decimal[src]
impl SubAssign<u64> for &mut Decimal[src]fn sub_assign(&mut self, other: u64)[src]
fn sub_assign(&mut self, other: u64)[src]Performs the -= operation. Read more
impl SubAssign<u8> for Decimal[src]
impl SubAssign<u8> for Decimal[src]fn sub_assign(&mut self, other: u8)[src]
fn sub_assign(&mut self, other: u8)[src]Performs the -= operation. Read more
impl SubAssign<u8> for &mut Decimal[src]
impl SubAssign<u8> for &mut Decimal[src]fn sub_assign(&mut self, other: u8)[src]
fn sub_assign(&mut self, other: u8)[src]Performs the -= operation. Read more
impl SubAssign<usize> for Decimal[src]
impl SubAssign<usize> for Decimal[src]fn sub_assign(&mut self, other: usize)[src]
fn sub_assign(&mut self, other: usize)[src]Performs the -= operation. Read more
impl SubAssign<usize> for &mut Decimal[src]
impl SubAssign<usize> for &mut Decimal[src]fn sub_assign(&mut self, other: usize)[src]
fn sub_assign(&mut self, other: usize)[src]Performs the -= operation. Read more
impl Copy for Decimal[src]
impl Eq for Decimal[src]
impl StructuralEq for Decimal[src]
Auto Trait Implementations
impl RefUnwindSafe for Decimal
impl Send for Decimal
impl Sync for Decimal
impl Unpin for Decimal
impl UnwindSafe for Decimal
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more