pub enum BudgetError {
CategoryNotPresent,
IncompleteBuilder,
}Expand description
Domain-specific error conditions for budgeting.
No stringly-typed errors or unwrap() usage here.
Variants§
CategoryNotPresent
Attempted to remove a category that was not present.
IncompleteBuilder
Builder was not fully initialized when .build() was invoked.
Trait Implementations§
Source§impl Clone for BudgetError
impl Clone for BudgetError
Source§fn clone(&self) -> BudgetError
fn clone(&self) -> BudgetError
Returns a duplicate 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 BudgetError
impl Debug for BudgetError
Source§impl From<UninitializedFieldError> for BudgetError
impl From<UninitializedFieldError> for BudgetError
Source§fn from(_err: UninitializedFieldError) -> Self
fn from(_err: UninitializedFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BudgetError
impl RefUnwindSafe for BudgetError
impl Send for BudgetError
impl Sync for BudgetError
impl Unpin for BudgetError
impl UnwindSafe for BudgetError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more