Skip to main content

HolidayCalendar

Trait HolidayCalendar 

Source
pub trait HolidayCalendar {
    // Required method
    fn is_holiday(&self, dt: &DateTime) -> bool;
}
Expand description

Decides which weekdays are holidays.

Weekends are never business days, so an implementation only needs to answer for Monday to Friday.

Required Methods§

Source

fn is_holiday(&self, dt: &DateTime) -> bool

Returns true if the date of dt (in its own offset) is a holiday.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§