Struct rust_decimal::Decimal [] [src]

pub struct Decimal { /* fields omitted */ }

128 bit representation of a decimal The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 <; m <; 296, and e is an integer between 0 and 28 inclusive.

Methods

impl Decimal
[src]

Trait Implementations

impl Deserialize for Decimal
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Decimal
[src]

Serialize this value into the given Serde serializer. Read more

impl Clone for Decimal
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Decimal
[src]

Formats the value using the given formatter.

impl Copy for Decimal
[src]

impl Zero for Decimal
[src]

Returns true if self is equal to the additive identity.

Returns the additive identity element of Self, 0. Read more

impl One for Decimal
[src]

Returns the multiplicative identity element of Self, 1. Read more

impl FromStr for Decimal
[src]

The associated error which can be returned from parsing.

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

impl ToString for Decimal
[src]

Converts the given value to a String. Read more

impl FromPrimitive for Decimal
[src]

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

impl ToPrimitive for Decimal
[src]

Converts the value of self to an i64.

Converts the value of self to an u64.

Converts the value of self to an isize.

Converts the value of self to an i8.

Converts the value of self to an i16.

Converts the value of self to an i32.

Converts the value of self to a usize.

Converts the value of self to an u8.

Converts the value of self to an u16.

Converts the value of self to an u32.

Converts the value of self to an f32.

Converts the value of self to an f64.

impl Add<Decimal> for Decimal
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<Decimal> for &'a Decimal
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<&'a Decimal> for Decimal
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, 'b> Add<&'b Decimal> for &'a Decimal
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Decimal> for Decimal
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<Decimal> for &'a Decimal
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a> Sub<&'a Decimal> for Decimal
[src]

The resulting type after applying the - operator

The method for the - operator

impl<'a, 'b> Sub<&'b Decimal> for &'a Decimal
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<Decimal> for Decimal
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<Decimal> for &'a Decimal
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<&'a Decimal> for Decimal
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, 'b> Mul<&'b Decimal> for &'a Decimal
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<Decimal> for Decimal
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a> Div<Decimal> for &'a Decimal
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a> Div<&'a Decimal> for Decimal
[src]

The resulting type after applying the / operator

The method for the / operator

impl<'a, 'b> Div<&'b Decimal> for &'a Decimal
[src]

The resulting type after applying the / operator

The method for the / operator

impl Rem<Decimal> for Decimal
[src]

The resulting type after applying the % operator

The method for the % operator

impl<'a> Rem<Decimal> for &'a Decimal
[src]

The resulting type after applying the % operator

The method for the % operator

impl<'a> Rem<&'a Decimal> for Decimal
[src]

The resulting type after applying the % operator

The method for the % operator

impl<'a, 'b> Rem<&'b Decimal> for &'a Decimal
[src]

The resulting type after applying the % operator

The method for the % operator

impl PartialEq for Decimal
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Decimal
[src]

impl PartialOrd for Decimal
[src]

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

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

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

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

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

impl Ord for Decimal
[src]

This method returns an Ordering between self and other. Read more