[][src]Struct finance_solution::TvmPeriod

pub struct TvmPeriod { /* fields omitted */ }

The value of an investment at the end of a given period, part of a Time Value of Money calculation.

This is either:

Implementations

impl TvmPeriod[src]

pub fn period(&self) -> u32[src]

Returns the period number. The first real period is 1 but there's also a period 0 which shows the starting conditions.

pub fn rate(&self) -> f64[src]

Returns the periodic rate for the current period. If the containing struct is a TvmSolution every period will have the same rate. If it's a [TvmSchedule] each period may have a different rate.

pub fn value(&self) -> f64[src]

Returns the value of the investment at the end of the current period.

pub fn formula(&self) -> &str[src]

Returns a text version of the formula used to calculate the value for the current period. The formula includes the actual values rather than variable names. For the formula with variables such as pv for present value call symbolic_formula.

pub fn symbolic_formula(&self) -> &str[src]

Returns a text version of the formula used to calculate the value for the current period. The formula includes variables such as r for the rate. For the formula with actual values rather than variables call formula.

Trait Implementations

impl Clone for TvmPeriod[src]

impl Debug for TvmPeriod[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, 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.