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