pub struct HolidayCalendarCache<T: Datelike + Copy + PartialOrd> { /* private fields */ }
Expand description

Caches business days calculation for a given holiday calendar and a given range of dates. Implements the HolidayCalendar trait.

Implementations

Creates HolidayCalendarCache that caches business days calculation in the range of dates from dt_min to dt_max.

Trait Implementations

Returns true if date is a holiday.
Returns true if date is a Business Day. A Business Day is defined as a weekday that is not a holiday. Read more
Returns the number of business days between d0 and d1.
Adjusts date to the last/next business day if it’s not a business day.
Advances bdays_count number of business days from date.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.