[][src]Struct holiday::NthWeekdayOfMonth

pub struct NthWeekdayOfMonth { /* fields omitted */ }

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

Methods

impl NthWeekdayOfMonth[src]

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

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
[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.