pub enum RateSide {
Currency(String),
Arg(String),
}Expand description
One side of a rate: a currency code or an argument reference. The per side may also be
the literal shares (units.md 2.3, spec-0.6.2), held here as a Currency side: it is
never a currency code, and only the per side of a rate holds it.
Variants§
Currency(String)
A currency code from units.md 2.1, or shares on the per side.
Arg(String)
{"arg": name}: the value of a string argument.
Trait Implementations§
impl Eq for RateSide
impl StructuralPartialEq for RateSide
Auto Trait Implementations§
impl Forget for RateSide
impl Freeze for RateSide
impl Move for RateSide
impl RefUnwindSafe for RateSide
impl Send for RateSide
impl Sync for RateSide
impl Unpin for RateSide
impl UnsafeUnpin for RateSide
impl UnwindSafe for RateSide
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