[][src]Struct finance_solution::ConvertRateSolution

pub struct ConvertRateSolution { /* fields omitted */ }

Implementations

impl ConvertRateSolution[src]

pub fn new(
    input_name: ConvertRateVariable,
    input_rate: f64,
    compounds_per_year: u32,
    apr_in_percent: String,
    epr_in_percent: String,
    ear_in_percent: String,
    apr: f64,
    epr: f64,
    ear: f64,
    apr_formula: &str,
    epr_formula: &str,
    ear_formula: &str
) -> Self
[src]

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

Returns the input rate.

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

Returns the annual rate (apr).

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

Returns the periodic rate (epr).

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

Returns the effective annual rate (ear).

pub fn input_name(&self) -> &ConvertRateVariable[src]

Returns the input name (Ear, Apr, Epr, AprContinuous...etc).

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

Returns the compounds per year as u32.

pub fn apr_in_percent(&self) -> &String[src]

Returns the annual rate (APR) in percentage format (for example, 3.58%).

pub fn ear_in_percent(&self) -> &String[src]

Returns the effective annual rate (EAR) in percentage format (for example, 3.69%).

pub fn epr_in_percent(&self) -> &String[src]

Returns the periodic rate (EPR) in percentage format (for example, 1.12%).

Trait Implementations

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