Struct Capitalisation
pub struct Capitalisation {
pub date: NaiveDate,
pub rate: f64,
pub year_fraction: f64,
pub face_before: f64,
pub face_after: f64,
}Expand description
One capitalisation: the coupon rolled into the principal rather than paid, carrying the rate applied and the face it produced. Reported so the accretion is reconstructable from the events; never a cash flow.
Fields§
§date: NaiveDateThe capitalisation date — the date the coupon would otherwise have paid.
rate: f64The annual rate applied.
year_fraction: f64The accrual year fraction for the period ending on date.
face_before: f64The accreted face entering the period.
face_after: f64The accreted face leaving it — face_before · (1 + rate · year_fraction).
Implementations§
§impl Capitalisation
impl Capitalisation
Trait Implementations§
§impl Clone for Capitalisation
impl Clone for Capitalisation
§fn clone(&self) -> Capitalisation
fn clone(&self) -> Capitalisation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Capitalisation
§impl Debug for Capitalisation
impl Debug for Capitalisation
§impl PartialEq for Capitalisation
impl PartialEq for Capitalisation
impl StructuralPartialEq for Capitalisation
Auto Trait Implementations§
impl Freeze for Capitalisation
impl RefUnwindSafe for Capitalisation
impl Send for Capitalisation
impl Sync for Capitalisation
impl Unpin for Capitalisation
impl UnsafeUnpin for Capitalisation
impl UnwindSafe for Capitalisation
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