[][src]Struct holiday::DayOfMonth

pub struct DayOfMonth {
    pub day: u32,
    pub month: Month,
}

A fixed day of the month (e.g.: March 31)

Fields

day: u32

The day of the month

month: Month

The month (January = 1)

Methods

impl DayOfMonth[src]

pub fn new<M: Into<Month>>(day: u32, month: M) -> Self[src]

Create a new DayOfMonth

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

Returns an iterator over the ocurrences of the DayOfMonth

Trait Implementations

impl BeforeAfterDate for DayOfMonth[src]

impl Clone for DayOfMonth[src]

impl Copy for DayOfMonth[src]

impl Debug for DayOfMonth[src]

impl Eq for DayOfMonth[src]

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

type Item = NaiveDate

The type of the elements being iterated over.

type IntoIter = HolidayIter<'h, DayOfMonth>

Which kind of iterator are we turning this into?

impl Ord for DayOfMonth[src]

impl PartialEq<DayOfMonth> for DayOfMonth[src]

impl PartialEq<NaiveDate> for DayOfMonth[src]

impl PartialOrd<DayOfMonth> for DayOfMonth[src]

impl StructuralEq for DayOfMonth[src]

impl StructuralPartialEq for DayOfMonth[src]

Auto Trait Implementations

impl RefUnwindSafe for DayOfMonth

impl Send for DayOfMonth

impl Sync for DayOfMonth

impl Unpin for DayOfMonth

impl UnwindSafe for DayOfMonth

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.