Enum chinese_lunisolar_calendar::SolarDay[][src]

pub enum SolarDay {
Show variants First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth, Thirteen, Fourteen, Fifteen, Sixteen, Seventeen, Eighteen, Nineteen, Twenty, TwentyFirst, TwentySecond, TwentyThird, TwentyFourth, TwentyFifth, TwentySixth, TwentySeventh, TwentyEighth, TwentyNinth, Thirty, ThirtyFirst,
}

列舉西曆三十一個天數名稱:一、二、…、十一、十二、…、二十一、二十二、…、三十、三十一。

Variants

First

Second

Third

Fourth

Fifth

Sixth

Seventh

Eighth

Ninth

Tenth

Eleventh

十一

Twelfth

十二

Thirteen

十三

Fourteen

十四

Fifteen

十五

Sixteen

十六

Seventeen

十七

Eighteen

十八

Nineteen

十九

Twenty

二十

TwentyFirst

二十一

TwentySecond

二十二

TwentyThird

二十三

TwentyFourth

二十四

TwentyFifth

二十五

TwentySixth

二十六

TwentySeventh

二十七

TwentyEighth

二十八

TwentyNinth

二十九

Thirty

三十

ThirtyFirst

三十一

Implementations

impl SolarDay[src]

pub unsafe fn from_ordinal_unsafe(number: i8) -> SolarDay[src]

pub fn from_str<S: AsRef<str>>(s: S) -> Option<SolarDay>[src]

透過西曆日期字串來取得 SolarDay 列舉實體。

pub fn to_str(self) -> &'static str[src]

取得 SolarDay 列舉實體所代表的西曆日期字串。

pub unsafe fn from_u8_unsafe(day: u8) -> SolarDay[src]

透過西曆日期數值來取得 SolarDay 列舉實體。

pub fn from_u8(day: u8) -> Option<SolarDay>[src]

透過西曆日期數值來取得 SolarDay 列舉實體。

pub fn to_u8(self) -> u8[src]

取得 SolarDay 列舉實體所代表的西曆日期數值。

Trait Implementations

impl Clone for SolarDay[src]

impl Copy for SolarDay[src]

impl Debug for SolarDay[src]

impl Display for SolarDay[src]

impl Eq for SolarDay[src]

impl FromStr for SolarDay[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for SolarDay[src]

impl Ord for SolarDay[src]

impl PartialEq<SolarDay> for SolarDay[src]

impl PartialOrd<SolarDay> for SolarDay[src]

impl StructuralEq for SolarDay[src]

impl StructuralPartialEq for SolarDay[src]

Auto Trait Implementations

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