#[non_exhaustive]pub enum AnyCalendarKind {
Show 18 variants
Buddhist,
Chinese,
Coptic,
Dangi,
Ethiopian,
EthiopianAmeteAlem,
Gregorian,
Hebrew,
Indian,
HijriTabularTypeIIFriday,
HijriSimulatedMecca,
HijriTabularTypeIIThursday,
HijriUmmAlQura,
Iso,
Japanese,
JapaneseExtended,
Persian,
Roc,
}Expand description
Convenient type for selecting the kind of AnyCalendar to construct
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Buddhist
The kind of a Buddhist calendar
This corresponds to the "buddhist" CLDR calendar.
Chinese
The kind of a Chinese calendar
This corresponds to the "chinese" CLDR calendar.
Coptic
The kind of a Coptic calendar
This corresponds to the "coptic" CLDR calendar.
Dangi
The kind of a Dangi calendar
This corresponds to the "dangi" CLDR calendar.
Ethiopian
The kind of an Ethiopian calendar, with Amete Mihret era
This corresponds to the "ethiopic" CLDR calendar.
EthiopianAmeteAlem
The kind of an Ethiopian calendar, with Amete Alem era
This corresponds to the "ethioaa" CLDR calendar.
Gregorian
The kind of a Gregorian calendar
This corresponds to the "gregory" CLDR calendar.
Hebrew
The kind of a Hebrew calendar
This corresponds to the "hebrew" CLDR calendar.
Indian
The kind of a Indian calendar
This corresponds to the "indian" CLDR calendar.
HijriTabularTypeIIFriday
The kind of an HijriTabular calendar using HijriTabularLeapYears::TypeII and HijriTabularEpoch::Friday
This corresponds to the "islamic-civil" CLDR calendar.
HijriSimulatedMecca
The kind of an HijriSimulated, Mecca calendar
This corresponds to the "islamic-rgsa" CLDR calendar.
HijriTabularTypeIIThursday
The kind of an HijriTabular calendar using HijriTabularLeapYears::TypeII and HijriTabularEpoch::Thursday
This corresponds to the "islamic-tbla" CLDR calendar.
HijriUmmAlQura
The kind of an HijriUmmAlQura calendar
This corresponds to the "islamic-umalqura" CLDR calendar.
Iso
The kind of an Iso calendar
This corresponds to the "iso8601" CLDR calendar.
Japanese
The kind of a Japanese calendar
This corresponds to the "japanese" CLDR calendar.
JapaneseExtended
The kind of a JapaneseExtended calendar
This corresponds to the "japanext" CLDR calendar.
Persian
The kind of a Persian calendar
This corresponds to the "persian" CLDR calendar.
Roc
The kind of a Roc calendar
This corresponds to the "roc" CLDR calendar.
Implementations§
Source§impl AnyCalendarKind
impl AnyCalendarKind
Sourcepub fn new(prefs: CalendarPreferences) -> AnyCalendarKind
pub fn new(prefs: CalendarPreferences) -> AnyCalendarKind
Selects the AnyCalendarKind appropriate for the given CalendarPreferences.
Trait Implementations§
Source§impl Clone for AnyCalendarKind
impl Clone for AnyCalendarKind
Source§fn clone(&self) -> AnyCalendarKind
fn clone(&self) -> AnyCalendarKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnyCalendarKind
impl Debug for AnyCalendarKind
Source§impl Display for AnyCalendarKind
impl Display for AnyCalendarKind
Source§impl Hash for AnyCalendarKind
impl Hash for AnyCalendarKind
Source§impl IntoOption<AnyCalendarKind> for AnyCalendarKind
impl IntoOption<AnyCalendarKind> for AnyCalendarKind
Source§fn into_option(self) -> Option<AnyCalendarKind>
fn into_option(self) -> Option<AnyCalendarKind>
self as an Option<T>Source§impl Ord for AnyCalendarKind
impl Ord for AnyCalendarKind
Source§fn cmp(&self, other: &AnyCalendarKind) -> Ordering
fn cmp(&self, other: &AnyCalendarKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AnyCalendarKind
impl PartialEq for AnyCalendarKind
Source§impl PartialOrd for AnyCalendarKind
impl PartialOrd for AnyCalendarKind
Source§impl TryFrom<CalendarAlgorithm> for AnyCalendarKind
impl TryFrom<CalendarAlgorithm> for AnyCalendarKind
Source§fn try_from(
v: CalendarAlgorithm,
) -> Result<AnyCalendarKind, <AnyCalendarKind as TryFrom<CalendarAlgorithm>>::Error>
fn try_from( v: CalendarAlgorithm, ) -> Result<AnyCalendarKind, <AnyCalendarKind as TryFrom<CalendarAlgorithm>>::Error>
impl Copy for AnyCalendarKind
impl Eq for AnyCalendarKind
impl StructuralPartialEq for AnyCalendarKind
Auto Trait Implementations§
impl Freeze for AnyCalendarKind
impl RefUnwindSafe for AnyCalendarKind
impl Send for AnyCalendarKind
impl Sync for AnyCalendarKind
impl Unpin for AnyCalendarKind
impl UnwindSafe for AnyCalendarKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more