pub struct SaudiIslamicMarker;
Expand description
Marker type for Saudi islamic calendar, for use with IslamicBasedMarker
Trait Implementations§
source§impl Clone for SaudiIslamicMarker
impl Clone for SaudiIslamicMarker
source§fn clone(&self) -> SaudiIslamicMarker
fn clone(&self) -> SaudiIslamicMarker
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 Debug for SaudiIslamicMarker
impl Debug for SaudiIslamicMarker
source§impl Hash for SaudiIslamicMarker
impl Hash for SaudiIslamicMarker
source§impl IslamicBasedMarker for SaudiIslamicMarker
impl IslamicBasedMarker for SaudiIslamicMarker
source§const EPOCH: RataDie = FIXED_ISLAMIC_EPOCH_FRIDAY
const EPOCH: RataDie = FIXED_ISLAMIC_EPOCH_FRIDAY
The epoch of the calendar. Different calendars use a different epoch (Thu or Fri) due to disagreement on the exact date of Mohammed’s migration to Mecca.
source§const DEBUG_NAME: &'static str = "SaudiIslamic"
const DEBUG_NAME: &'static str = "SaudiIslamic"
The name of the calendar for debugging.
source§const HAS_353_DAY_YEARS: bool = true
const HAS_353_DAY_YEARS: bool = true
Whether this calendar is known to have 353-day years.
This is probably a bug; see https://github.com/unicode-org/icu4x/issues/4930
source§fn fixed_from_islamic(year: i32, month: u8, day: u8) -> RataDie
fn fixed_from_islamic(year: i32, month: u8, day: u8) -> RataDie
Convert an islamic date in this calendar to a R.D.
source§fn islamic_from_fixed(date: RataDie) -> (i32, u8, u8)
fn islamic_from_fixed(date: RataDie) -> (i32, u8, u8)
Convert an R.D. To an islamic date in this calendar
source§fn mean_synodic_ny(extended_year: i32) -> RataDie
fn mean_synodic_ny(extended_year: i32) -> RataDie
Given the extended year, calculate the approximate new year using the mean synodic month
source§fn approximate_islamic_from_fixed(date: RataDie) -> i32
fn approximate_islamic_from_fixed(date: RataDie) -> i32
Given an iso date, calculate the approximate islamic year it corresponds to (for quick cache lookup)
source§impl PartialEq for SaudiIslamicMarker
impl PartialEq for SaudiIslamicMarker
source§fn eq(&self, other: &SaudiIslamicMarker) -> bool
fn eq(&self, other: &SaudiIslamicMarker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SaudiIslamicMarker
impl Eq for SaudiIslamicMarker
impl StructuralPartialEq for SaudiIslamicMarker
Auto Trait Implementations§
impl Freeze for SaudiIslamicMarker
impl RefUnwindSafe for SaudiIslamicMarker
impl Send for SaudiIslamicMarker
impl Sync for SaudiIslamicMarker
impl Unpin for SaudiIslamicMarker
impl UnwindSafe for SaudiIslamicMarker
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