pub trait ChineseBased {
const EPOCH: RataDie;
// Required method
fn location(fixed: RataDie) -> Location;
}
Expand description
The trait ChineseBased is used by Chinese-based calendars to perform computations shared by such calendar. To do so, calendars should:
- Implement
fn location
by providing a location at which observations of the moon are recorded, which may change over time (the zone is important, long, lat, and elevation are not relevant for these calculations) - Define
const EPOCH
as aRataDie
marking the start date of the era of the Calendar for internal use, which may not accurately reflect how years or eras are marked traditionally or seen by end-users