pub enum Exchange<'i> {
Total(ValueExpr<'i>),
Rate(ValueExpr<'i>),
}
Expand description
Exchange represents the amount expressed in the different commodity.
Variants§
Total(ValueExpr<'i>)
Specified value equals to the total amount.
For example,
200 JPY @@ 2 USD
means the amount was 200 JPY, which is equal to 2 USD.
Rate(ValueExpr<'i>)
Specified value equals to the amount of one original commodity.
For example,
200 JPY @ (1 / 100 USD)
means the amount was 200 JPY, where 1 JPY is equal to 1/100 USD.
Trait Implementations§
Source§impl<'i> AsUndecorated<Exchange<'i>> for Exchange<'i>
impl<'i> AsUndecorated<Exchange<'i>> for Exchange<'i>
fn as_undecorated(&self) -> &Exchange<'i>
Source§impl<'i> IntoBoundedStatic for Exchange<'i>
impl<'i> IntoBoundedStatic for Exchange<'i>
Source§impl<'i> ToBoundedStatic for Exchange<'i>
impl<'i> ToBoundedStatic for Exchange<'i>
impl<'i> Eq for Exchange<'i>
impl<'i> StructuralPartialEq for Exchange<'i>
Auto Trait Implementations§
impl<'i> Freeze for Exchange<'i>
impl<'i> RefUnwindSafe for Exchange<'i>
impl<'i> Send for Exchange<'i>
impl<'i> Sync for Exchange<'i>
impl<'i> Unpin for Exchange<'i>
impl<'i> UnwindSafe for Exchange<'i>
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