Struct calendrical_calculations::chinese_based::Chinese
source · 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§fn location(fixed: RataDie) -> Location
fn location(fixed: RataDie) -> Location
Given a fixed date, return the location 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§const EPOCH: RataDie = CHINESE_EPOCH
const EPOCH: RataDie = CHINESE_EPOCH
The RataDie of the beginning of the epoch used for internal computation; this may not
reflect traditional methods of year-tracking or eras, since Chinese-based calendars
may not track years ordinally in the same way many western calendars do.
source§const DEBUG_NAME: &'static str = "chinese"
const DEBUG_NAME: &'static str = "chinese"
The name of the calendar for debugging.
source§fn extended_from_iso(iso_year: i32) -> i32
fn extended_from_iso(iso_year: i32) -> i32
Given an ISO year, return the extended year
source§fn iso_from_extended(extended_year: i32) -> i32
fn iso_from_extended(extended_year: i32) -> i32
Given an extended year, return the ISO year
source§impl Ord for Chinese
impl Ord for Chinese
source§impl PartialEq for Chinese
impl PartialEq for Chinese
source§impl PartialOrd for Chinese
impl PartialOrd for Chinese
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 moreimpl 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