[−][src]Enum finance_solution::TvmVariable
Enumeration used for the calculated_field
field in TvmSolution
and [TvmSchedule
] to keep
track of what was calculated, either the periodic rate, the number of periods, the present
value, or the future value.
Variants
Implementations
impl TvmVariable
[src]
pub fn is_rate(&self) -> bool
[src]
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.
pub fn is_periods(&self) -> bool
[src]
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.
pub fn is_present_value(&self) -> bool
[src]
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.
pub fn is_future_value(&self) -> bool
[src]
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
impl Clone for TvmVariable
[src]
fn clone(&self) -> TvmVariable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TvmVariable
[src]
impl Display for TvmVariable
[src]
impl Eq for TvmVariable
[src]
impl Hash for TvmVariable
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TvmVariable> for TvmVariable
[src]
fn eq(&self, other: &TvmVariable) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for TvmVariable
[src]
Auto Trait Implementations
impl RefUnwindSafe for TvmVariable
impl Send for TvmVariable
impl Sync for TvmVariable
impl Unpin for TvmVariable
impl UnwindSafe for TvmVariable
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,