pub struct WeekendsOnly;
Expand description

The WeekendsOnly holiday calendar always returns false for method is_holiday. So is_bday method returns false only for weekend dates.

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
Adjusts date to the last/next business day if it’s not a business day.
Advances bdays_count number of business days from date.
Returns the number of business days between d0 and d1.

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.