Enum beancount_parser::PostingPrice
source · pub enum PostingPrice<D> {
Unit(Amount<D>),
Total(Amount<D>),
}Expand description
Price of a posting
It is the amount following the @ or @@ symbols
Variants§
Trait Implementations§
source§impl<D: Clone> Clone for PostingPrice<D>
impl<D: Clone> Clone for PostingPrice<D>
source§fn clone(&self) -> PostingPrice<D>
fn clone(&self) -> PostingPrice<D>
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<D: Debug> Debug for PostingPrice<D>
impl<D: Debug> Debug for PostingPrice<D>
source§impl<D: PartialEq> PartialEq for PostingPrice<D>
impl<D: PartialEq> PartialEq for PostingPrice<D>
source§fn eq(&self, other: &PostingPrice<D>) -> bool
fn eq(&self, other: &PostingPrice<D>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<D> StructuralPartialEq for PostingPrice<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for PostingPrice<D>where
D: RefUnwindSafe,
impl<D> Send for PostingPrice<D>where
D: Send,
impl<D> Sync for PostingPrice<D>where
D: Sync,
impl<D> Unpin for PostingPrice<D>where
D: Unpin,
impl<D> UnwindSafe for PostingPrice<D>where
D: UnwindSafe,
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