[][src]Enum finance_solution::TvmVariable

pub enum TvmVariable {
    Rate,
    Periods,
    PresentValue,
    FutureValue,
}

Enumeration used for the calculated_field field in TvmSolution and [TvmSchedule] to keep track of what was calculated, either the periodic rate, the number of periods, the present value, or the future value.

Variants

Rate
Periods
PresentValue
FutureValue

Implementations

impl TvmVariable[src]

pub fn is_rate(&self) -> bool[src]

Returns true if the variant is TvmVariable::Rate indicating that the periodic rate was calculated from the number of periods, the present value, and the future value.

pub fn is_periods(&self) -> bool[src]

Returns true if the variant is TvmVariable::Periods indicating that the number of periods was calculated from the periocic rate, the present value, and the future value.

pub fn is_present_value(&self) -> bool[src]

Returns true if the variant is TvmVariable::PresentValue indicating that the present value was calculated from one or more periocic rates, the number of periods, and the future value.

pub fn is_future_value(&self) -> bool[src]

Returns true if the variant is TvmVariable::FutureValue indicating that the future value was calculated from one or more periocic rates, the number of periods, and the present value.

Trait Implementations

impl Clone for TvmVariable[src]

impl Debug for TvmVariable[src]

impl Display for TvmVariable[src]

impl Eq for TvmVariable[src]

impl Hash for TvmVariable[src]

impl PartialEq<TvmVariable> for TvmVariable[src]

impl StructuralPartialEq for TvmVariable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.