Struct beancount_parser::amount::Amount
source · pub struct Amount<'a> { /* private fields */ }Expand description
A beancount amount
The amount is the combination of an Expression and the currency.
Implementations
sourceimpl<'a> Amount<'a>
impl<'a> Amount<'a>
sourcepub fn expression(&self) -> &Expression
pub fn expression(&self) -> &Expression
Returns the Expression which may be inspected or evaluated
Trait Implementations
impl<'a> StructuralPartialEq for Amount<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Amount<'a>
impl<'a> Send for Amount<'a>
impl<'a> Sync for Amount<'a>
impl<'a> Unpin for Amount<'a>
impl<'a> UnwindSafe for Amount<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more