Enum beancount_parser_lima::types::ScopedAmount
source · pub enum ScopedAmount<'a> {
BareCurrency(&'a Currency<'a>),
BareAmount(ScopedExprValue),
CurrencyAmount(ScopedExprValue, &'a Currency<'a>),
}Expand description
An amount which specifies a total or per-unit ScopedExprValue, or simply just a Currency.
Variants§
BareCurrency(&'a Currency<'a>)
BareAmount(ScopedExprValue)
CurrencyAmount(ScopedExprValue, &'a Currency<'a>)
Trait Implementations§
source§impl<'a> Clone for ScopedAmount<'a>
impl<'a> Clone for ScopedAmount<'a>
source§fn clone(&self) -> ScopedAmount<'a>
fn clone(&self) -> ScopedAmount<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for ScopedAmount<'a>
impl<'a> Debug for ScopedAmount<'a>
source§impl<'a> Display for ScopedAmount<'a>
impl<'a> Display for ScopedAmount<'a>
source§impl<'a> PartialEq for ScopedAmount<'a>
impl<'a> PartialEq for ScopedAmount<'a>
source§fn eq(&self, other: &ScopedAmount<'a>) -> bool
fn eq(&self, other: &ScopedAmount<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for ScopedAmount<'a>
impl<'a> StructuralPartialEq for ScopedAmount<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ScopedAmount<'a>
impl<'a> Send for ScopedAmount<'a>
impl<'a> Sync for ScopedAmount<'a>
impl<'a> Unpin for ScopedAmount<'a>
impl<'a> UnwindSafe for ScopedAmount<'a>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more