Enum okane_core::repl::Exchange
source · 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> IntoBoundedStatic for Exchange<'i>
impl<'i> IntoBoundedStatic for Exchange<'i>
source§impl<'i> PartialEq for Exchange<'i>
impl<'i> PartialEq 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