#[non_exhaustive]pub enum CalendarAlgorithm {
Show 14 variants
Buddhist,
Chinese,
Coptic,
Dangi,
Ethioaa,
Ethiopic,
Gregory,
Hebrew,
Indian,
Hijri(Option<HijriCalendarAlgorithm>),
Iso8601,
Japanese,
Persian,
Roc,
}Expand description
A Unicode Calendar Identifier defines a type of calendar.
This selects calendar-specific data within a locale used for formatting and parsing, such as date/time symbols and patterns; it also selects supplemental calendarData used for calendrical calculations. The value can affect the computation of the first day of the week.
The valid values are listed in LDML.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Buddhist
Thai Buddhist calendar (same as Gregorian except for the year)
Chinese
Traditional Chinese calendar
Coptic
Coptic calendar
Dangi
Traditional Korean calendar
Ethioaa
Ethiopic calendar, Amete Alem (epoch approx. 5493 B.C.E)
Ethiopic
Ethiopic calendar, Amete Mihret (epoch approx, 8 C.E.)
Gregory
Gregorian calendar
Hebrew
Traditional Hebrew calendar
Indian
Indian calendar
Hijri(Option<HijriCalendarAlgorithm>)
Hijri calendar
Iso8601
ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules)
Japanese
Japanese Imperial calendar
Persian
Persian calendar
Roc
Republic of China calendar
Implementations§
Trait Implementations§
Source§impl Clone for CalendarAlgorithm
impl Clone for CalendarAlgorithm
Source§fn clone(&self) -> CalendarAlgorithm
fn clone(&self) -> CalendarAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more