[−][src]Struct finance_solution::ConvertRateSolution
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]
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
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
Auto Trait Implementations
impl RefUnwindSafe for ConvertRateSolution
impl Send for ConvertRateSolution
impl Sync for ConvertRateSolution
impl Unpin for ConvertRateSolution
impl UnwindSafe for ConvertRateSolution
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,