Struct calendrical_calculations::chinese_based::Dangi
source · pub struct Dangi;
Expand description
A type implementing ChineseBased
for the Dangi (Korean) calendar
Trait Implementations§
source§impl ChineseBased for Dangi
impl ChineseBased for Dangi
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 = KOREAN_EPOCH
const EPOCH: RataDie = KOREAN_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 = "dangi"
const DEBUG_NAME: &'static str = "dangi"
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 Dangi
impl Ord for Dangi
source§impl PartialEq for Dangi
impl PartialEq for Dangi
source§impl PartialOrd for Dangi
impl PartialOrd for Dangi
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 Dangi
impl StructuralPartialEq for Dangi
Auto Trait Implementations§
impl Freeze for Dangi
impl RefUnwindSafe for Dangi
impl Send for Dangi
impl Sync for Dangi
impl Unpin for Dangi
impl UnwindSafe for Dangi
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