[][src]Struct holiday::NthWeekdayOfMonth

pub struct NthWeekdayOfMonth { /* fields omitted */ }

Nth weekday of a month (e.g.: Second Tuesday in October)


impl NthWeekdayOfMonth[src]

pub fn new<N: Into<NthWeekday>, M: Into<Month>>(
    nth: N,
    weekday: Weekday,
    month: M
) -> Self

Creates a new NthWeekdayOfMonth

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

Returns an iterator over the ocurrences of the NthWeekdayOfMonth

Trait Implementations

impl BeforeAfterDate for NthWeekdayOfMonth[src]

impl Clone for NthWeekdayOfMonth[src]

impl Copy for NthWeekdayOfMonth[src]

impl Debug for NthWeekdayOfMonth[src]

impl Eq for NthWeekdayOfMonth[src]

impl From<NaiveDate> for NthWeekdayOfMonth[src]

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

type Item = NaiveDate

The type of the elements being iterated over.

type IntoIter = HolidayIter<'h, NthWeekdayOfMonth>

Which kind of iterator are we turning this into?

impl Ord for NthWeekdayOfMonth[src]

impl PartialEq<NaiveDate> for NthWeekdayOfMonth[src]

impl<S: ToString> PartialEq<NthWeekdayOfMonth> for Holiday<S>[src]

impl PartialEq<NthWeekdayOfMonth> for NthWeekdayOfMonth[src]

impl PartialOrd<NthWeekdayOfMonth> for NthWeekdayOfMonth[src]

impl StructuralEq for NthWeekdayOfMonth[src]

impl StructuralPartialEq for NthWeekdayOfMonth[src]

Auto Trait Implementations

impl RefUnwindSafe for NthWeekdayOfMonth

impl Send for NthWeekdayOfMonth

impl Sync for NthWeekdayOfMonth

impl Unpin for NthWeekdayOfMonth

impl UnwindSafe for NthWeekdayOfMonth

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.