pub struct Chinese;
Expand description
A type implementing ChineseBased
for the Chinese calendar
Trait Implementations§
Source§impl ChineseBased for Chinese
impl ChineseBased for Chinese
Source§const EPOCH: RataDie
const EPOCH: RataDie
The equivalent first day in the Chinese calendar (based on inception of the calendar), Feb. 15, -2636
Source§const DEBUG_NAME: &'static str = "chinese"
const DEBUG_NAME: &'static str = "chinese"
The name of the calendar for debugging.
Source§fn utc_offset(fixed: RataDie) -> f64
fn utc_offset(fixed: RataDie) -> f64
Given a fixed date, return the UTC offset used for observations of the new moon in order to
calculate the beginning of months. For multiple Chinese-based lunar calendars, this has
changed over the years, and can cause differences in calendar date.
Source§impl Ord for Chinese
impl Ord for Chinese
Source§impl PartialOrd for Chinese
impl PartialOrd for Chinese
impl Eq for Chinese
impl StructuralPartialEq for Chinese
Auto Trait Implementations§
impl Freeze for Chinese
impl RefUnwindSafe for Chinese
impl Send for Chinese
impl Sync for Chinese
impl Unpin for Chinese
impl UnwindSafe for Chinese
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more