#[non_exhaustive]pub struct UmmAlQura;Expand description
Hijri Rules for the Umm al-Qura calendar.
From the start of 1300 AH (1882-11-12 ISO) to the end of 1600 AH (2174-11-25 ISO), this
Rules implementation uses Umm al-Qura month lengths obtained from
KACST. Outside this range, this implementation falls back to
TabularAlgorithm with TabularAlgorithmLeapYears::TypeII and TabularAlgorithmEpoch::Friday.
The precise behavior of this calendar may change in the future if:
- New ground truth is established by published government sources
- We decide to use a different algorithm outside the KACST range
- We decide to expand or reduce the range where we are correctly handling past dates.
This corresponds to the "islamic-umalqura" CLDR calendar.
Trait Implementations§
Source§impl Rules for UmmAlQura
impl Rules for UmmAlQura
Source§fn calendar_algorithm(&self) -> Option<CalendarAlgorithm>
fn calendar_algorithm(&self) -> Option<CalendarAlgorithm>
The BCP-47
CalendarAlgorithm for the Hijri calendar using these rules, if defined.Source§fn ecma_reference_year(
&self,
month_code: (u8, bool),
day: u8,
) -> Result<i32, EcmaReferenceYearError>
fn ecma_reference_year( &self, month_code: (u8, bool), day: u8, ) -> Result<i32, EcmaReferenceYearError>
Returns an ECMA reference year that contains the given month-day combination. Read more
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
The debug name for these rules.
Source§fn year_data(&self, extended_year: i32) -> HijriYearData
fn year_data(&self, extended_year: i32) -> HijriYearData
Returns data about the given year.
impl Copy for UmmAlQura
Auto Trait Implementations§
impl Freeze for UmmAlQura
impl RefUnwindSafe for UmmAlQura
impl Send for UmmAlQura
impl Sync for UmmAlQura
impl Unpin for UmmAlQura
impl UnsafeUnpin for UmmAlQura
impl UnwindSafe for UmmAlQura
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