pub struct ListStatisticHelper { /* private fields */ }

Implementations

List of statistic helper elements implementation.

Create and return a new statistic helper.

Return
  • See description.

Add a new statistic into the statistics list.

Arguments
  • name_param - Name of the statistic.
  • last_date_param - The last statistic event date.
  • elem_am_index_param - Index of the amortization element.
Return
  • True if successful, otherwise false.

Performs a deep copy of this statistic helper list and returns a new statistic helper.

Return
  • See description.

Get the name of the statistic.

Return
  • See description.

Get the accumulated principal decrease for statistics period.

Return
  • See description.

Get the accumulated principal increase for statistics period.

Return
  • See description.

Get the accumulated compounded interest for period.

Return
  • See description.

Get the accumulated straight-line interest for period.

Return
  • See description.

Get the accumulated value to interest for period.

Return
  • See description.

Get the accumulated value to principal for period.

Return
  • See description.

Get the last statistic event date.

Return
  • See description.

Get the index of the ListAmortization.ElemAmortization object.

Return
  • See description.

Select a statistic based upon a name.

Arguments
  • name_param - The name of the statistic to select.
Return
  • True if successful, otherwise false.

Increment the accumulated principal decrease for statistics period.

Arguments
  • principal_decrease_param - See description.
Return
  • True if successful, otherwise false.

Increment the accumulated principal increase for statistics period.

Arguments
  • principal_increase_param - See description.
Return
  • True if successful, otherwise false.

Increment the accumulated compounded interest for period.

Arguments
  • interest_param - See description.
Return
  • True if successful, otherwise false.

Increment the accumulated straight-line interest for period.

Arguments
  • sl_interest_param - See description.
Return
  • True if successful, otherwise false.

Increment the accumulated value to interest for period.

Arguments
  • value_to_interest_param - See description.
Return
  • True if successful, otherwise false.

Increment the accumulated value to principal for period.

Arguments
  • value_to_principal_param - See description.
Return
  • True if successful, otherwise false.

Remove the selected statistic from the statistic list.

Return
  • True if successful, otherwise false.

Reset all statistic accumulators.

Return
  • True if successful, otherwise false.

Set the last statistic event date.

Arguments
  • last_date_param - See description.
Return
  • True if successful, otherwise false.

Set the index of the ListAmortization.ElemAmortization object.

Arguments
  • elem_am_index_param - See description.
Return
  • True if successful, otherwise false.

Trait Implementations

List of statistic helper elements default implementation.

Create and return a new statistic helper.

Return
  • See description.

List of statistic helper list implementation.

Clear all statistics from the statistic list.

Get the count of the statistic helper list.

Return
  • See description.

Get the index of the selected statistic (starting from 0).

Return
  • See description.

Select a statistic based upon an index value.

Arguments
  • index_param - Index value of the statistic to select (starting from 0).
Return
  • True if successful, otherwise false.

Set the list index.

Arguments
  • index_param - See description.
Return
  • True if successful, otherwise false.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.