#[non_exhaustive]pub enum SimplificationError {
IncompleteTransaction(Posting),
UnbalancedTransaction(Transaction),
BalanceAssertionFailed(Transaction),
ZeroBalanceAssertionFailed(Transaction),
UnbalancedVirtualWithNoAmount(Transaction),
ZeroBalanceMultipleCurrencies(Transaction),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncompleteTransaction(Posting)
UnbalancedTransaction(Transaction)
BalanceAssertionFailed(Transaction)
ZeroBalanceAssertionFailed(Transaction)
UnbalancedVirtualWithNoAmount(Transaction)
ZeroBalanceMultipleCurrencies(Transaction)
Trait Implementations§
source§impl Clone for SimplificationError
impl Clone for SimplificationError
source§fn clone(&self) -> SimplificationError
fn clone(&self) -> SimplificationError
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 Debug for SimplificationError
impl Debug for SimplificationError
source§impl Display for SimplificationError
impl Display for SimplificationError
source§impl Error for SimplificationError
impl Error for SimplificationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for SimplificationError
impl PartialEq for SimplificationError
source§fn eq(&self, other: &SimplificationError) -> bool
fn eq(&self, other: &SimplificationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SimplificationError
impl StructuralPartialEq for SimplificationError
Auto Trait Implementations§
impl RefUnwindSafe for SimplificationError
impl Send for SimplificationError
impl Sync for SimplificationError
impl Unpin for SimplificationError
impl UnwindSafe for SimplificationError
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