#[non_exhaustive]pub struct China;Expand description
The Rules used in China.
See ChineseTraditional for more information.
Implementations§
Source§impl China
impl China
Sourcepub fn gb_t_33661_2017(related_iso: i32) -> EastAsianTraditionalYearData
pub fn gb_t_33661_2017(related_iso: i32) -> EastAsianTraditionalYearData
Computes EastAsianTraditionalYearData according to GB/T 33661-2017,
as implemented by calendrical_calculations::chinese_based::Chinese.
The rules specified in GB/T 33661-2017 have only been used since 1912, applying them proleptically to years before 1912 will not necessarily match historical calendars.
Note that for future years there is a small degree of uncertainty, as GB/T 33661-2017 depends on the uncertain future difference between UT1 and UTC. As noted by Yuk Tung Liu, years as early as 2057, 2089, and 2097 have lunar events very close to local midnight, which might affect the start of a (single) month if additional leap seconds are introduced.
Trait Implementations§
Source§impl Rules for China
impl Rules for China
Source§fn year_data(&self, related_iso: i32) -> EastAsianTraditionalYearData
fn year_data(&self, related_iso: i32) -> EastAsianTraditionalYearData
Returns data about the given year.
Source§fn ecma_reference_year(
&self,
month_code: (u8, bool),
day: u8,
) -> Result<i32, EcmaReferenceYearError>
fn ecma_reference_year( &self, month_code: (u8, bool), day: u8, ) -> Result<i32, EcmaReferenceYearError>
Returns an ECMA reference year that contains the given month-day combination. Read more
Source§fn calendar_algorithm(&self) -> Option<CalendarAlgorithm>
fn calendar_algorithm(&self) -> Option<CalendarAlgorithm>
The BCP-47
CalendarAlgorithm for the calendar defined by these Rules, if defined.Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
The debug name for the calendar defined by these
Rules.impl Copy for China
Auto Trait Implementations§
impl Freeze for China
impl RefUnwindSafe for China
impl Send for China
impl Sync for China
impl Unpin for China
impl UnsafeUnpin for China
impl UnwindSafe for China
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