pub enum HeavenlyStems {
First,
Second,
Third,
Fourth,
Fifth,
Sixth,
Seventh,
Eighth,
Ninth,
Tenth,
}
Expand description
列舉中國十天干:甲、乙、丙、丁、戊、己、更、辛、壬、葵。
Variants§
Implementations§
source§impl HeavenlyStems
impl HeavenlyStems
pub unsafe fn from_ordinal_unsafe(number: i8) -> HeavenlyStems
sourcepub fn from_str<S: AsRef<str>>(s: S) -> Option<HeavenlyStems>
pub fn from_str<S: AsRef<str>>(s: S) -> Option<HeavenlyStems>
透過甲、乙、丙、丁、戊、己、更、辛、壬、葵等字串來取得 HeavenlyStems
列舉實體。
sourcepub fn from_char(c: char) -> Option<HeavenlyStems>
pub fn from_char(c: char) -> Option<HeavenlyStems>
透過甲、乙、丙、丁、戊、己、更、辛、壬、葵等字元來取得 HeavenlyStems
列舉實體。
Trait Implementations§
source§impl Clone for HeavenlyStems
impl Clone for HeavenlyStems
source§fn clone(&self) -> HeavenlyStems
fn clone(&self) -> HeavenlyStems
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HeavenlyStems
impl Debug for HeavenlyStems
source§impl Display for HeavenlyStems
impl Display for HeavenlyStems
source§impl Hash for HeavenlyStems
impl Hash for HeavenlyStems
source§impl Ord for HeavenlyStems
impl Ord for HeavenlyStems
source§fn cmp(&self, other: &HeavenlyStems) -> Ordering
fn cmp(&self, other: &HeavenlyStems) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<HeavenlyStems> for HeavenlyStems
impl PartialEq<HeavenlyStems> for HeavenlyStems
source§fn eq(&self, other: &HeavenlyStems) -> bool
fn eq(&self, other: &HeavenlyStems) -> bool
source§impl PartialOrd<HeavenlyStems> for HeavenlyStems
impl PartialOrd<HeavenlyStems> for HeavenlyStems
source§fn partial_cmp(&self, other: &HeavenlyStems) -> Option<Ordering>
fn partial_cmp(&self, other: &HeavenlyStems) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more