Struct amfnengine::core::elem_statistic_helper::ElemStatisticHelper [−]
Implementations
impl ElemStatisticHelper
The statistic helper implementation.
pub fn new(
name_param: &str,
principal_decrease_param: Decimal,
principal_increase_param: Decimal,
interest_param: Decimal,
sl_interest_param: Decimal,
value_to_interest_param: Decimal,
value_to_principal_param: Decimal,
last_date_param: usize,
elem_am_index_param: usize
) -> ElemStatisticHelper
name_param: &str,
principal_decrease_param: Decimal,
principal_increase_param: Decimal,
interest_param: Decimal,
sl_interest_param: Decimal,
value_to_interest_param: Decimal,
value_to_principal_param: Decimal,
last_date_param: usize,
elem_am_index_param: usize
) -> ElemStatisticHelper
Create a new statistic helper.
Arguments
name_param
- Statistic helper name.principal_decrease_param
- Principal decrease.principal_increase_param
- Principal increase.interest_param
- Interest parameter.sl_interest_param
- Straight line interest.value_to_interest_param
- Value to interest.value_to_principal_param
- Value to principal.last_date_param
- Last date.elem_am_index_param
- Amortization element index.
Return
- See description.
pub fn name(&self) -> &str
pub fn principal_decrease(&self) -> Decimal
pub fn principal_increase(&self) -> Decimal
pub fn interest(&self) -> Decimal
pub fn sl_interest(&self) -> Decimal
pub fn value_to_interest(&self) -> Decimal
pub fn value_to_principal(&self) -> Decimal
pub fn last_date(&self) -> usize
pub fn elem_am_index(&self) -> usize
pub fn set_name(&mut self, name_param: &str)
pub fn set_principal_decrease(&mut self, principal_decrease_param: Decimal)
Set the principal decrease of the statistic helper.
Arguments
principal_decrease_param
- See description.
pub fn set_principal_increase(&mut self, principal_increase_param: Decimal)
Set the principal increase of the statistic helper.
Arguments
principal_increase_param
- See description.
pub fn set_interest(&mut self, interest_param: Decimal)
pub fn set_sl_interest(&mut self, sl_interest_param: Decimal)
Set the straight line interest of the statistic helper.
Arguments
sl_interest_param
- See description.
pub fn set_value_to_interest(&mut self, value_to_interest_param: Decimal)
Set the value to interest of the statistic helper.
Arguments
value_to_interest_param
- See description.
pub fn set_value_to_principal(&mut self, value_to_principal_param: Decimal)
Set the value to principal of the statistic helper.
Arguments
value_to_principal_param
- See description.
pub fn set_last_date(&mut self, last_date_param: usize)
pub fn set_elem_am_index(&mut self, elem_am_index_param: usize)
Set the element amortization index of the statistic helper.
Arguments
elem_am_index_param
- See description.
Auto Trait Implementations
impl RefUnwindSafe for ElemStatisticHelper
impl Send for ElemStatisticHelper
impl Sync for ElemStatisticHelper
impl Unpin for ElemStatisticHelper
impl UnwindSafe for ElemStatisticHelper
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,
pub 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.
pub 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>,