Struct amfnengine::core::elem_interest_change::ElemInterestChange [−]
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
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
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
pub fn day_count_basis(&self) -> DayCountType
pub fn days_in_year(&self) -> usize
pub fn effective_frequency(&self) -> FrequencyType
pub fn interest_frequency(&self) -> FrequencyType
pub fn round_balance(&self) -> RoundType
pub fn round_decimal_digits(&self) -> Decimal
pub fn set_method(&mut self, method_param: MethodType)
pub fn set_day_count_basis(&mut self, day_count_basis_param: DayCountType)
pub fn set_days_in_year(&mut self, days_in_year_param: usize)
pub fn set_effective_frequency(
&mut self,
effective_frequency_param: FrequencyType
)
&mut self,
effective_frequency_param: FrequencyType
)
pub fn set_interest_frequency(
&mut self,
interest_frequency_param: FrequencyType
)
&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)
pub fn set_round_decimal_digits(&mut self, round_decimal_digits_param: Decimal)
Auto Trait Implementations
impl RefUnwindSafe for ElemInterestChange
impl Send for ElemInterestChange
impl Sync for ElemInterestChange
impl Unpin for ElemInterestChange
impl UnwindSafe for ElemInterestChange
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>,