#[non_exhaustive]pub enum CalendarDate {
Jdn(f64),
Gregorian(GregorianDate),
Coptic(CopticDate),
Persian(PersianDate),
Hebrew(HebrewDate),
Hijri(HijriDate),
MayanLongCount(LongCount),
}Expand description
A date in any supported calendar system.
Used as input to convert() for unified any-to-any calendar conversion
via the JDN pivot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Jdn(f64)
Julian Day Number (direct).
Gregorian(GregorianDate)
Proleptic Gregorian calendar.
Coptic(CopticDate)
Coptic (Alexandrian) calendar.
Persian(PersianDate)
Persian (Solar Hijri / Jalaali) calendar.
Hebrew(HebrewDate)
Hebrew (Jewish) calendar.
Hijri(HijriDate)
Islamic (Hijri) tabular calendar.
MayanLongCount(LongCount)
Mayan Long Count.
Trait Implementations§
Source§impl Clone for CalendarDate
impl Clone for CalendarDate
Source§fn clone(&self) -> CalendarDate
fn clone(&self) -> CalendarDate
Returns a duplicate 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 Debug for CalendarDate
impl Debug for CalendarDate
Source§impl<'de> Deserialize<'de> for CalendarDate
impl<'de> Deserialize<'de> for CalendarDate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CalendarDate
impl PartialEq for CalendarDate
Source§impl Serialize for CalendarDate
impl Serialize for CalendarDate
impl StructuralPartialEq for CalendarDate
Auto Trait Implementations§
impl Freeze for CalendarDate
impl RefUnwindSafe for CalendarDate
impl Send for CalendarDate
impl Sync for CalendarDate
impl Unpin for CalendarDate
impl UnsafeUnpin for CalendarDate
impl UnwindSafe for CalendarDate
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