pub struct ObservationalIslamicMarker;
Expand description
Marker type for observational islamic calendar, for use with IslamicBasedMarker
Trait Implementations§
source§impl Clone for ObservationalIslamicMarker
impl Clone for ObservationalIslamicMarker
source§fn clone(&self) -> ObservationalIslamicMarker
fn clone(&self) -> ObservationalIslamicMarker
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 ObservationalIslamicMarker
impl Debug for ObservationalIslamicMarker
source§impl Hash for ObservationalIslamicMarker
impl Hash for ObservationalIslamicMarker
source§impl IslamicBasedMarker for ObservationalIslamicMarker
impl IslamicBasedMarker for ObservationalIslamicMarker
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 = "ObservationalIslamic"
const DEBUG_NAME: &'static str = "ObservationalIslamic"
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 ObservationalIslamicMarker
impl PartialEq for ObservationalIslamicMarker
source§fn eq(&self, other: &ObservationalIslamicMarker) -> bool
fn eq(&self, other: &ObservationalIslamicMarker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ObservationalIslamicMarker
impl Eq for ObservationalIslamicMarker
impl StructuralPartialEq for ObservationalIslamicMarker
Auto Trait Implementations§
impl Freeze for ObservationalIslamicMarker
impl RefUnwindSafe for ObservationalIslamicMarker
impl Send for ObservationalIslamicMarker
impl Sync for ObservationalIslamicMarker
impl Unpin for ObservationalIslamicMarker
impl UnwindSafe for ObservationalIslamicMarker
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