Struct penny::Money [] [src]

pub struct Money { /* fields omitted */ }

A bundle of an amount of money and the currency it's in.

Methods

impl Money
[src]

[src]

Creates a new Money of the given amount and currency.

[src]

Returns the contained amount of money.

[src]

Returns the type of currency.

[src]

Returns information about this money's currency.

Caches the reference to make future accesses quicker.

Trait Implementations

impl Debug for Money
[src]

[src]

Formats the value using the given formatter.

impl Clone for Money
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more