An annually repeating calendar date. Can be either a fixed date (e.g., April 1) or an nth weekday of the month (e.g., 4th Thursday in November)
impl<S: ToString> Holiday<S>[src]
Creates a new fixed date holiday
Creates a new nth weekday of the month Holiday
Returns a reference to the Name of the Holiday
pub fn iter(&self) -> HolidayIter<Self>[src]
Returns an iterator over all the occurrences of a given Holiday starting at the earliest representable date.
Determine the date of a Holiday in a given year
impl<S: ToString> BeforeAfterDate for Holiday<S>[src]
fn after_today(&self) -> NaiveDate[src]
fn before_today(&self) -> NaiveDate[src]
fn first_date(&self) -> NaiveDate[src]
The associated error which can be returned from parsing.
impl<'h, S: ToString> IntoIterator for &'h Holiday<S>[src]
The type of the elements being iterated over.
type IntoIter = HolidayIter<'h, Holiday<S>>
Which kind of iterator are we turning this into?
impl<S: ToString> PartialEq<NthWeekdayOfMonth> for Holiday<S>[src]
fn eq(&self, nth: &NthWeekdayOfMonth) -> bool[src]
impl<S: ToString> PartialOrd<Holiday<S>> for Holiday<S>[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Holiday<S> where
impl<S> UnwindSafe for Holiday<S> where
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.