[][src]Enum koyomi::Weekday

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

曜日

月曜を週の始まりとする。 chrono::Weekdayから生成することもできる。

Variants

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday

Methods

impl Weekday[src]

pub fn japanese(&self) -> char[src]

曜日の日本語表現を返す

Examples

use koyomi::Weekday;

let w = Weekday::Monday;
assert_eq!(w.japanese(), '月');

Trait Implementations

impl Clone for Weekday[src]

impl Debug for Weekday[src]

impl Eq for Weekday[src]

impl From<Weekday> for Weekday[src]

fn from(weekday: ChronoWeekday) -> Self[src]

chrono::Weekdayから対応する曜日を生成する

impl PartialEq<Weekday> for Weekday[src]

impl StructuralEq for Weekday[src]

impl StructuralPartialEq for Weekday[src]

Auto Trait Implementations

impl RefUnwindSafe for Weekday

impl Send for Weekday

impl Sync for Weekday

impl Unpin for Weekday

impl UnwindSafe for Weekday

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.