Struct beancount_parser::transaction::Transaction
source · Available on crate feature
unstable only.Expand description
Implementations
sourceimpl<'a> Transaction<'a>
impl<'a> Transaction<'a>
sourcepub fn balanced(self) -> Option<Transaction<'a, Amount<'a>>>
pub fn balanced(self) -> Option<Transaction<'a, Amount<'a>>>
Returned the balanced version of this transaction if possible
Returns None if the transaction cannot be balanced
sourceimpl<'a> Transaction<'a>
impl<'a> Transaction<'a>
Returns the tags attached to this transaction
Trait Implementations
sourceimpl<'a, A: Clone> Clone for Transaction<'a, A>
impl<'a, A: Clone> Clone for Transaction<'a, A>
sourcefn clone(&self) -> Transaction<'a, A>
fn clone(&self) -> Transaction<'a, A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl<'a, A> RefUnwindSafe for Transaction<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for Transaction<'a, A>where
A: Send,
impl<'a, A> Sync for Transaction<'a, A>where
A: Sync,
impl<'a, A> Unpin for Transaction<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for Transaction<'a, A>where
A: UnwindSafe,
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