Skip to main content

adjusted

Function adjusted 

fn adjusted(
    pts: Vec<NaiveDate>,
    calendar: &dyn Calendar,
    convention: BusinessDayConvention,
    terminal_convention: Option<BusinessDayConvention>,
) -> Vec<NaiveDate>
Expand description

Business-day-adjusts pts: every boundary but the last by convention, the last by terminal_convention (defaulting to convention), then drops the collisions an adjustment produces — an interior boundary rolled onto or past either end merges into that end, as the two conventions can cross.