Enum okane_core::repl::Exchange
source · pub enum Exchange {
Total(ValueExpr),
Rate(ValueExpr),
}Expand description
Exchange represents the amount expressed in the different commodity.
Variants§
Total(ValueExpr)
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)
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 PartialEq for Exchange
impl PartialEq for Exchange
impl Eq for Exchange
impl StructuralEq for Exchange
impl StructuralPartialEq for Exchange
Auto Trait Implementations§
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
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