pub struct RateTable { /* private fields */ }Expand description
A pluggable exchange-rate table — the substrate of the Universal Money Amount (money’s UTC). Each currency code maps to its rate versus a chosen reference currency: how many reference units one unit of the currency is worth, exact on the Rational tower (the reference itself is 1). The source is interchangeable — a literal table, a CRDT-synced table, an API fetch — they all produce this same value, so with rates in scope money of different currencies shares one coordinate and cross-currency math becomes meaningful (and exact).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateTable
impl RefUnwindSafe for RateTable
impl Send for RateTable
impl Sync for RateTable
impl Unpin for RateTable
impl UnsafeUnpin for RateTable
impl UnwindSafe for RateTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more