pub struct CompoundInterestResult {
pub final_amount: f64,
pub total_interest: f64,
pub principal: f64,
pub effective_annual_rate: f64,
}Expand description
Represents the result of a compound interest calculation
Fields§
§final_amount: f64Final amount after compound interest
total_interest: f64Total interest earned
principal: f64Initial principal
effective_annual_rate: f64Effective annual rate
Trait Implementations§
Source§impl Clone for CompoundInterestResult
impl Clone for CompoundInterestResult
Source§fn clone(&self) -> CompoundInterestResult
fn clone(&self) -> CompoundInterestResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompoundInterestResult
impl RefUnwindSafe for CompoundInterestResult
impl Send for CompoundInterestResult
impl Sync for CompoundInterestResult
impl Unpin for CompoundInterestResult
impl UnwindSafe for CompoundInterestResult
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
Mutably borrows from an owned value. Read more