pub enum TvmVariable {
Rate,
Periods,
PresentValue,
FutureValue,
}Expand description
Enumeration used for the calculated_field field in TvmSolution and schedule solutions to
track what was calculated: periodic rate, number of periods, present value, or future value.
Variants§
Implementations§
Source§impl TvmVariable
impl TvmVariable
Sourcepub fn is_rate(&self) -> bool
pub fn is_rate(&self) -> bool
Returns true if the variant is TvmVariable::Rate indicating that the periodic rate was calculated from the number of periods, the present value, and the future value.
Sourcepub fn is_periods(&self) -> bool
pub fn is_periods(&self) -> bool
Returns true if the variant is TvmVariable::Periods indicating that the number of periods was calculated from the periocic rate, the present value, and the future value.
Sourcepub fn is_present_value(&self) -> bool
pub fn is_present_value(&self) -> bool
Returns true if the variant is TvmVariable::PresentValue indicating that the present value was calculated from one or more periocic rates, the number of periods, and the future value.
Sourcepub fn is_future_value(&self) -> bool
pub fn is_future_value(&self) -> bool
Returns true if the variant is TvmVariable::FutureValue indicating that the future value was calculated from one or more periocic rates, the number of periods, and the present value.
Trait Implementations§
Source§impl Clone for TvmVariable
impl Clone for TvmVariable
Source§fn clone(&self) -> TvmVariable
fn clone(&self) -> TvmVariable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TvmVariable
Source§impl Debug for TvmVariable
impl Debug for TvmVariable
Source§impl Display for TvmVariable
impl Display for TvmVariable
impl Eq for TvmVariable
Source§impl Hash for TvmVariable
impl Hash for TvmVariable
Source§impl PartialEq for TvmVariable
impl PartialEq for TvmVariable
impl StructuralPartialEq for TvmVariable
Auto Trait Implementations§
impl Freeze for TvmVariable
impl RefUnwindSafe for TvmVariable
impl Send for TvmVariable
impl Sync for TvmVariable
impl Unpin for TvmVariable
impl UnsafeUnpin for TvmVariable
impl UnwindSafe for TvmVariable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more