pub enum LunarDay {
Show 30 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,
}
Expand description
列舉農曆三十個天數名稱:初一、初二、…、十一、十二、…、廿一、廿二、…、三十。
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
三十
Implementations
sourceimpl LunarDay
impl LunarDay
pub unsafe fn from_ordinal_unsafe(number: i8) -> LunarDay
sourcepub unsafe fn from_u8_unsafe(day: u8) -> LunarDay
pub unsafe fn from_u8_unsafe(day: u8) -> LunarDay
透過農曆日期數值來取得 LunarDay
列舉實體。
sourcepub fn get_ba_zi_weight(self) -> u8
pub fn get_ba_zi_weight(self) -> u8
取得八字重量。
Trait Implementations
sourceimpl Ord for LunarDay
impl Ord for LunarDay
sourceimpl PartialOrd<LunarDay> for LunarDay
impl PartialOrd<LunarDay> for LunarDay
sourcefn partial_cmp(&self, other: &LunarDay) -> Option<Ordering>
fn partial_cmp(&self, other: &LunarDay) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for LunarDay
impl Eq for LunarDay
impl StructuralEq for LunarDay
impl StructuralPartialEq for LunarDay
Auto Trait Implementations
impl RefUnwindSafe for LunarDay
impl Send for LunarDay
impl Sync for LunarDay
impl Unpin for LunarDay
impl UnwindSafe for LunarDay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more