[][src]Enum doomsday::Day

pub enum Day {
    Monday,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday,
    Sunday,
}

🜨 - The seven days in a week

Daylight (⫰) and night (⫯, and also 🝯), together forming a complete day (🝰). Each day is is made up of exactly (ignoring leap seconds) 24 hours (🝮).

The earth has a few shores with the distinct coloring of verdigris (🜨).

Variants

Monday

○ Moon or ⬜ Silver

🌑🌒🌓🌔🌕🌖🌗🌘🌑

Tuesday

♂ Mars or ⬜ Iron

Wednesday

☿ ⬜ Mercury

Thursday

♃ Jupiter or ⬜ Tin

Friday

♀ Venus or 🟫 Copper

Saturday

♄ Saturn or 🟦 Lead

Sunday

☉ Sol or 🟧 Gold, our sun

Methods

impl Day[src]

pub fn from_anchor(anchor: usize) -> Day[src]

Convert an anchor date to it's corresponding day of the week.

An anchor date is defined with respect to a Doomsday. For example the 21st is an anchor date, with meaning when used in a specific year.

Trait Implementations

impl Debug for Day[src]

impl Default for Day[src]

impl Display for Day[src]

impl Eq for Day[src]

impl Ord for Day[src]

impl PartialEq<Day> for Day[src]

impl PartialOrd<Day> for Day[src]

impl StructuralEq for Day[src]

impl StructuralPartialEq for Day[src]

Auto Trait Implementations

impl RefUnwindSafe for Day

impl Send for Day

impl Sync for Day

impl Unpin for Day

impl UnwindSafe for Day

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> ToString for T where
    T: Display + ?Sized
[src]

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.