Struct beancount_parser_2::Currency
source · pub struct Currency<S>(_);
Expand description
Currency
One may use Currency::as_str
to get the string representation of the currency
For an example, look at the Price
directive
Implementations§
Trait Implementations§
source§impl<S: Ord> Ord for Currency<S>
impl<S: Ord> Ord for Currency<S>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<S: PartialEq> PartialEq<Currency<S>> for Currency<S>
impl<S: PartialEq> PartialEq<Currency<S>> for Currency<S>
source§impl<S: PartialOrd> PartialOrd<Currency<S>> for Currency<S>
impl<S: PartialOrd> PartialOrd<Currency<S>> for Currency<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<S: Copy> Copy for Currency<S>
impl<S: Eq> Eq for Currency<S>
impl<S> StructuralEq for Currency<S>
impl<S> StructuralPartialEq for Currency<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for Currency<S>where S: RefUnwindSafe,
impl<S> Send for Currency<S>where S: Send,
impl<S> Sync for Currency<S>where S: Sync,
impl<S> Unpin for Currency<S>where S: Unpin,
impl<S> UnwindSafe for Currency<S>where S: 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