Struct Cashflow
pub struct Cashflow<R: Scalar> {
pub date: NaiveDate,
pub amount: R,
}Expand description
A single dated payment, in one pricing mode.
The amount is the mode’s scalar because it is computed — a floating coupon’s amount comes off a forward curve, so it carries that curve’s sensitivities. Nothing here is stored contract data: the passive terms a coupon holds are on the coupon, and this is what projecting one produces.
Fields§
§date: NaiveDateThe payment date.
amount: RThe payment amount.
Implementations§
Trait Implementations§
impl<R: PartialEq + Scalar> StructuralPartialEq for Cashflow<R>
Auto Trait Implementations§
impl<R> Freeze for Cashflow<R>where
R: Freeze,
impl<R> RefUnwindSafe for Cashflow<R>where
R: RefUnwindSafe,
impl<R> Send for Cashflow<R>
impl<R> Sync for Cashflow<R>
impl<R> Unpin for Cashflow<R>where
R: Unpin,
impl<R> UnsafeUnpin for Cashflow<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Cashflow<R>where
R: UnwindSafe,
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