#[repr(C)]pub enum AnyCalendarKind {
Show 18 variants
Iso = 0,
Gregorian = 1,
Buddhist = 2,
Japanese = 3,
JapaneseExtended = 4,
Ethiopian = 5,
EthiopianAmeteAlem = 6,
Indian = 7,
Coptic = 8,
Dangi = 9,
Chinese = 10,
Hebrew = 11,
HijriCivil = 12,
HijriObservational = 13,
HijriTabular = 14,
HijriUmmAlQura = 15,
Persian = 16,
Roc = 17,
}
Expand description
The various calendar types currently supported by Calendar
Variants§
Iso = 0
The kind of an Iso calendar
Gregorian = 1
The kind of a Gregorian calendar
Buddhist = 2
The kind of a Buddhist calendar
Japanese = 3
The kind of a Japanese calendar with modern eras
JapaneseExtended = 4
The kind of a Japanese calendar with modern and historic eras
Ethiopian = 5
The kind of an Ethiopian calendar, with Amete Mihret era
EthiopianAmeteAlem = 6
The kind of an Ethiopian calendar, with Amete Alem era
Indian = 7
The kind of a Indian calendar
Coptic = 8
The kind of a Coptic calendar
Dangi = 9
The kind of a Dangi calendar
Chinese = 10
The kind of a Chinese calendar
Hebrew = 11
The kind of a Hebrew calendar
HijriCivil = 12
The kind of a Hijri civil calendar
HijriObservational = 13
The kind of a Hijri observational calendar
HijriTabular = 14
The kind of a Hijri tabular calendar
HijriUmmAlQura = 15
The kind of a Hijri Umm al-Qura calendar
Persian = 16
The kind of a Persian calendar
Roc = 17
The kind of a Roc calendar
Trait Implementations§
Source§impl Clone for AnyCalendarKind
impl Clone for AnyCalendarKind
Source§fn clone(&self) -> AnyCalendarKind
fn clone(&self) -> AnyCalendarKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<AnyCalendarKind> for AnyCalendarKind
impl From<AnyCalendarKind> for AnyCalendarKind
Source§fn from(other: AnyCalendarKind) -> Self
fn from(other: AnyCalendarKind) -> Self
Converts to this type from the input type.
Source§impl From<AnyCalendarKind> for AnyCalendarKind
impl From<AnyCalendarKind> for AnyCalendarKind
Source§fn from(this: AnyCalendarKind) -> Self
fn from(this: AnyCalendarKind) -> Self
Converts to this type from the input type.
impl Copy 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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