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