[][src]Enum holiday::HolidayDate

pub enum HolidayDate {
    FixedDate(DayOfMonth),
    NthDate(NthWeekdayOfMonth),
}

Holiday Date type

Variants

FixedDate(DayOfMonth)

Fixed date. Example: "October 31"

NthDate(NthWeekdayOfMonth)

Relative weekday in a month. Example: "4th Thursday in November"

Methods

impl HolidayDate[src]

pub fn iter(&self) -> HolidayIter<Self>[src]

Returns an iterator over the ocurrences of the HolidayDate

Trait Implementations

impl BeforeAfterDate for HolidayDate[src]

impl Clone for HolidayDate[src]

impl Copy for HolidayDate[src]

impl Debug for HolidayDate[src]

impl Eq for HolidayDate[src]

impl<'h> IntoIterator for &'h HolidayDate[src]

type Item = NaiveDate

The type of the elements being iterated over.

type IntoIter = HolidayIter<'h, HolidayDate>

Which kind of iterator are we turning this into?

impl Ord for HolidayDate[src]

impl PartialEq<HolidayDate> for HolidayDate[src]

impl PartialOrd<HolidayDate> for HolidayDate[src]

impl StructuralEq for HolidayDate[src]

impl StructuralPartialEq for HolidayDate[src]

Auto Trait Implementations

impl RefUnwindSafe for HolidayDate

impl Send for HolidayDate

impl Sync for HolidayDate

impl Unpin for HolidayDate

impl UnwindSafe for HolidayDate

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.