Enum prayers::CalculationMethods[][src]

pub enum CalculationMethods {
    MWL,
    ISNA,
    Egypt,
    Makkah(bool),
    Karachi,
    Tehran,
    Jafari,
    MF,
    Custom(CalculationMethod),
}

The calculation methods

Variants

MWL

Muslim World League

ISNA

Islamic Society of North America

Egypt
Makkah(bool)

Umm Al-Qura University, Makkah

Example

use prayers::*;

CalculationMethods::Makkah(true); // in the ramadan period
CalculationMethods::Makkah(false); // not in the ramadan period
Karachi

University of Islamic Sciences, Karachi

Tehran

Institute of Geophysics, University of Tehran

Jafari

Shia Ithna-Ashari, Leva Institute, Qum

MF

Muslims of France

Custom parameters

Example

use prayers::*;

CalculationMethods::Custom(CalculationMethod::from(12.0, CalculationType::Angle(13.0)));
CalculationMethods::Custom(CalculationMethod::new(
	None,
	13.0,
	None,
	Some(CalculationType::Angle(6.0)),
	CalculationType::Angle(13.0),
	Some(MidnightMethod::Jafari),
));

Trait Implementations

impl Clone for CalculationMethods[src]

impl Copy for CalculationMethods[src]

impl Debug for CalculationMethods[src]

impl PartialEq<CalculationMethods> for CalculationMethods[src]

impl StructuralPartialEq for CalculationMethods[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.