pub enum CashflowVariable {
PresentValueAnnuity,
PresentValueAnnuityDue,
FutureValueAnnuity,
Payment,
FutureValueAnnuityDue,
NetPresentValue,
}Variants§
PresentValueAnnuity
PresentValueAnnuityDue
FutureValueAnnuity
Payment
FutureValueAnnuityDue
NetPresentValue
Implementations§
Source§impl CashflowVariable
impl CashflowVariable
Sourcepub fn is_present_value_annuity(&self) -> bool
pub fn is_present_value_annuity(&self) -> bool
Returns true if the variant is CashflowVariable::PresentValueAnnuity indicating that the solution was created by calculating the present value of an annuity with the payment due at the end of the month.
Sourcepub fn is_future_value_annuity(&self) -> bool
pub fn is_future_value_annuity(&self) -> bool
Returns true if the variant is CashflowVariable::FutureValueAnnuity indicating that the solution was created by calculating the future value of an annuity with the payment due at the end of the month.
Sourcepub fn is_payment(&self) -> bool
pub fn is_payment(&self) -> bool
Returns true if the variant is CashflowVariable::Payment indicating that the solution
was created in a call to payment_solution.
Sourcepub fn is_present_value_annuity_due(&self) -> bool
pub fn is_present_value_annuity_due(&self) -> bool
Returns true if the variant is CashflowVariable::PresentValueAnnuityDue indicating that the solution was created by calculating the present value of an annuity with the payment due at the beginning of the month.
Sourcepub fn is_future_value_annuity_due(&self) -> bool
pub fn is_future_value_annuity_due(&self) -> bool
Returns true if the variant is CashflowVariable::FutureValueAnnuityDue indicating that the solution was created by calculating the future value of an annuity with the payment due at the beginning of the month.
Sourcepub fn is_net_present_value(&self) -> bool
pub fn is_net_present_value(&self) -> bool
Returns true if the variant is CashflowVariable::NetPresentValue indicating that the solution was created by calculating a net present value.
Trait Implementations§
Source§impl Clone for CashflowVariable
impl Clone for CashflowVariable
Source§fn clone(&self) -> CashflowVariable
fn clone(&self) -> CashflowVariable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CashflowVariable
Source§impl Debug for CashflowVariable
impl Debug for CashflowVariable
Source§impl Display for CashflowVariable
impl Display for CashflowVariable
impl Eq for CashflowVariable
Source§impl Hash for CashflowVariable
impl Hash for CashflowVariable
Source§impl PartialEq for CashflowVariable
impl PartialEq for CashflowVariable
impl StructuralPartialEq for CashflowVariable
Auto Trait Implementations§
impl Freeze for CashflowVariable
impl RefUnwindSafe for CashflowVariable
impl Send for CashflowVariable
impl Sync for CashflowVariable
impl Unpin for CashflowVariable
impl UnsafeUnpin for CashflowVariable
impl UnwindSafe for CashflowVariable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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