Enum chinese_lunisolar_calendar::HeavenlyStems[][src]

pub enum HeavenlyStems {
    First,
    Second,
    Third,
    Fourth,
    Fifth,
    Sixth,
    Seventh,
    Eighth,
    Ninth,
    Tenth,
}

列舉中國十天干:甲、乙、丙、丁、戊、己、更、辛、壬、葵。

Variants

First

Second

Third

Fourth

Fifth

Sixth

Seventh

Eighth

Ninth

Tenth

Implementations

impl HeavenlyStems[src]

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

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

透過甲、乙、丙、丁、戊、己、更、辛、壬、葵等字串來取得 HeavenlyStems 列舉實體。

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

取得 HeavenlyStems 列舉實體所代表的地支字串。

pub fn from_char(c: char) -> Option<HeavenlyStems>[src]

透過甲、乙、丙、丁、戊、己、更、辛、壬、葵等字元來取得 HeavenlyStems 列舉實體。

pub fn to_char(self) -> char[src]

取得 HeavenlyStems 列舉實體所代表的地支字元。

Trait Implementations

impl Clone for HeavenlyStems[src]

impl Copy for HeavenlyStems[src]

impl Debug for HeavenlyStems[src]

impl Display for HeavenlyStems[src]

impl Eq for HeavenlyStems[src]

impl FromStr for HeavenlyStems[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for HeavenlyStems[src]

impl Ord for HeavenlyStems[src]

impl PartialEq<HeavenlyStems> for HeavenlyStems[src]

impl PartialOrd<HeavenlyStems> for HeavenlyStems[src]

impl StructuralEq for HeavenlyStems[src]

impl StructuralPartialEq for HeavenlyStems[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.