pub enum SolarDay {
Show 31 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,
}
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
三十
ThirtyFirst
三十一
Implementations
sourceimpl SolarDay
impl SolarDay
pub unsafe fn from_ordinal_unsafe(number: i8) -> SolarDay
sourcepub unsafe fn from_u8_unsafe(day: u8) -> SolarDay
pub unsafe fn from_u8_unsafe(day: u8) -> SolarDay
透過西曆日期數值來取得 SolarDay
列舉實體。
Trait Implementations
sourceimpl Ord for SolarDay
impl Ord for SolarDay
sourceimpl PartialOrd<SolarDay> for SolarDay
impl PartialOrd<SolarDay> for SolarDay
sourcefn partial_cmp(&self, other: &SolarDay) -> Option<Ordering>
fn partial_cmp(&self, other: &SolarDay) -> 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 SolarDay
impl Eq for SolarDay
impl StructuralEq for SolarDay
impl StructuralPartialEq for SolarDay
Auto Trait Implementations
impl RefUnwindSafe for SolarDay
impl Send for SolarDay
impl Sync for SolarDay
impl Unpin for SolarDay
impl UnwindSafe for SolarDay
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