Skip to main content

Method

Enum Method 

Source
pub enum Method {
Show 15 variants MuslimWorldLeague, Egyptian, Karachi, UmmAlQura, Dubai, MoonsightingCommittee, NorthAmerica, Kuwait, Qatar, Singapore, Tehran, Turkey, France, Algeria, Other,
}
Expand description

Provides preset configuration for a few authorities for calculating prayer times.

Variants§

§

MuslimWorldLeague

Muslim World League. Standard Fajr time with an angle of 18°. Earlier Isha time with an angle of 17°.

§

Egyptian

Egyptian General Authority of Survey. Early Fajr time using an angle of 19.5° and a slightly earlier Isha time using an angle of 17.5°.

§

Karachi

University of Islamic Sciences, Karachi. A generally applicable method that uses standard Fajr and Isha angles of 18°.

§

UmmAlQura

Umm al-Qura University, Makkah. Uses a fixed interval of 90 minutes from Maghrib to calculate Isha, and a slightly earlier Fajr time with an angle of 18.5°. Note: you should add a +30 minute custom adjustment for Isha during Ramadan.

§

Dubai

Used in the UAE. Slightly earlier Fajr time and slightly later Isha time with angles of 18.2° for Fajr and Isha in addition to 3 minute offsets for sunrise, Dhuhr, Asr, and Maghrib.

§

MoonsightingCommittee

Method developed by Khalid Shaukat, founder of Moonsighting Committee Worldwide. Uses standard 18° angles for Fajr and Isha in addition to seasonal adjustment values. This method automatically applies the 1/7 approximation rule for locations above 55° latitude. Recommended for North America and the UK.

§

NorthAmerica

Also known as the ISNA method. Can be used for North America, but the MoonsightingCommittee method is preferable. Gives later Fajr times and early Isha times with angles of 15°.

§

Kuwait

Standard Fajr time with an angle of 18°. Slightly earlier Isha time with an angle of 17.5°.

§

Qatar

Same Isha interval as ummAlQura but with the standard Fajr time using an angle of 18°.

§

Singapore

Used in Singapore, Malaysia, and Indonesia. Early Fajr time with an angle of 20° and standard Isha time with an angle of 18°.

§

Tehran

Institute of Geophysics, University of Tehran. Early Isha time with an angle of 14°. Slightly later Fajr time with an angle of 17.7°. Calculates Maghrib based on the sun reaching an angle of 4.5° below the horizon.

§

Turkey

An approximation of the Diyanet method used in Turkey. This approximation is less accurate outside the region of Turkey.

§

France

Union des Organisations Islamiques de France (UOIF / ECFR). Standard Fajr time with an angle of 12° and Isha time with an angle of 12°.

§

Algeria

Algerian Ministry of Religious Affairs. Standard Fajr time with an angle of 18°, Isha time with an angle of 17°, and a +3 minute adjustment for Maghrib.

§

Other

Defaults to angles of 0°, should generally be used for making a custom method and setting your own values.

Implementations§

Source§

impl Method

Source

pub fn parameters(&self) -> Parameters

Build the default Parameters for this calculation method.

Trait Implementations§

Source§

impl Clone for Method

Source§

fn clone(&self) -> Method

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Method

Source§

impl Debug for Method

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Method

Source§

fn eq(&self, other: &Method) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Method

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.