Function leg_cashflow_records
pub fn leg_cashflow_records<R: Scalar>(
leg: &Leg,
disc: &dyn YieldCurve<R>,
curves: &dyn CurveByIndex<R>,
fixings: &FixingsView<'_, R>,
as_of: NaiveDate,
) -> Result<Records, CashflowError>Expand description
One leg’s cashflows as records: the same table
cashflow_records builds, over a single leg.
A leg reached on its own — composed by a caller rather than read off an instrument — reports through this. It is one expression rooted at the instrument-level producer rather than a second walk, so the two cannot disagree about a column, its order, or what a cell holds when it is empty.
§Errors
As cashflow_records.