[][src]Enum holiday::Month

pub enum Month {
    January,
    February,
    March,
    April,
    May,
    June,
    July,
    August,
    September,
    October,
    November,
    December,
}

A convenience enum for specifiying the month (January = 1)

Variants

January
February
March
April
May
June
July
August
September
October
November
December

Methods

impl Month[src]

pub fn from_zero(&self) -> u32[src]

Get the month as a u32 where January = 0

Trait Implementations

impl Clone for Month[src]

impl Copy for Month[src]

impl Debug for Month[src]

impl Eq for Month[src]

impl From<Month> for u32[src]

impl From<u32> for Month[src]

impl Ord for Month[src]

impl PartialEq<Month> for u32[src]

impl PartialEq<Month> for Month[src]

impl PartialEq<u32> for Month[src]

impl PartialOrd<Month> for u32[src]

impl PartialOrd<Month> for Month[src]

impl PartialOrd<u32> for Month[src]

impl StructuralEq for Month[src]

impl StructuralPartialEq for Month[src]

Auto Trait Implementations

impl RefUnwindSafe for Month

impl Send for Month

impl Sync for Month

impl Unpin for Month

impl UnwindSafe for Month

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.