Struct amfnengine::core::elem_interest_change::ElemInterestChange[]

pub struct ElemInterestChange { /* fields omitted */ }

Implementations

impl ElemInterestChange

The interest change implementation.

pub fn new(
    method_param: MethodType,
    day_count_basis_param: DayCountType,
    days_in_year_param: usize,
    effective_frequency_param: FrequencyType,
    interest_frequency_param: FrequencyType,
    round_balance_param: RoundType,
    round_decimal_digits_param: Decimal
) -> ElemInterestChange

Create a new interest change element.

Arguments

  • method_param - Interest method.
  • day_count_basis_param - Day count basis.
  • days_in_year_param - Days in year.
  • effective_frequency_param - Optional effective frequency.
  • interest_frequency_param - Optional interest amortization frequency.
  • round_balance_param - Round balance.
  • round_decimal_digits_param - Round decimal digits.

Return

  • See description.

pub fn copy(&self) -> ElemInterestChange

Copy this interest change element as a new interest change element.

Return

  • See description.

pub fn equal(&self, elem_interest_change: &ElemInterestChange) -> bool

Tests if this interest change object and another are equal.

Arguments

  • elem_interest_change - Object to compare.

Return

  • True if equals, otherwise false.

pub fn method(&self) -> MethodType

Get the interest method used.

Return

  • See description.

pub fn day_count_basis(&self) -> DayCountType

Get the day count basis.

Return

  • See description.

pub fn days_in_year(&self) -> usize

Get the number of days in the year.

Return

  • See description.

pub fn effective_frequency(&self) -> FrequencyType

Get the optional effective frequency.

Return

  • See description.

pub fn interest_frequency(&self) -> FrequencyType

Get the optional interest amortization frequency.

Return

  • See description.

pub fn round_balance(&self) -> RoundType

Get the round intermediate balance results.

Return

  • See description.

pub fn round_decimal_digits(&self) -> Decimal

Get the round decimal digits.

Return

  • See description.

pub fn set_method(&mut self, method_param: MethodType)

Set the interest method used.

Arguments

  • method_param - See description.

pub fn set_day_count_basis(&mut self, day_count_basis_param: DayCountType)

Set the day count basis.

Arguments

  • day_count_basis_param - See description.

pub fn set_days_in_year(&mut self, days_in_year_param: usize)

Set the number of days in the year.

Arguments

  • days_in_year_param - See description.

pub fn set_effective_frequency(
    &mut self,
    effective_frequency_param: FrequencyType
)

Set the optional effective frequency.

Arguments

  • effective_frequency_param - See description.

pub fn set_interest_frequency(
    &mut self,
    interest_frequency_param: FrequencyType
)

Set the optional interest amortization frequency.

Arguments

  • interest_frequency_param - See description.

pub fn set_round_balance(&mut self, round_balance_param: RoundType)

Set the round intermediate balance results.

Arguments

  • round_balance_param - See description.

pub fn set_round_decimal_digits(&mut self, round_decimal_digits_param: Decimal)

Set the round decimal digits.

Arguments

  • round_decimal_digits_param - See description.

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.