Struct argent::Amount [] [src]

pub struct Amount<'a> {
    pub currency: &'a Currency,
    pub quantity: i64,
}

Fields

Methods

impl<'a> Amount<'a>
[src]

Trait Implementations

impl<'a> Debug for Amount<'a>
[src]

Formats the value using the given formatter.

impl<'a> Clone for Amount<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Display for Amount<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Add for Amount<'a>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> Sub for Amount<'a>
[src]

The resulting type after applying the - operator

The method for the - operator