Enum prayers::CalculationMethods [−][src]
The calculation methods
Variants
Muslim World League
Islamic Society of North America
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
University of Islamic Sciences, Karachi
Institute of Geophysics, University of Tehran
Shia Ithna-Ashari, Leva Institute, Qum
Muslims of France
Custom(CalculationMethod)
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]
fn clone(&self) -> CalculationMethods
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CalculationMethods
[src]
impl Debug for CalculationMethods
[src]
impl PartialEq<CalculationMethods> for CalculationMethods
[src]
fn eq(&self, other: &CalculationMethods) -> bool
[src]
fn ne(&self, other: &CalculationMethods) -> bool
[src]
impl StructuralPartialEq for CalculationMethods
[src]
Auto Trait Implementations
impl RefUnwindSafe for CalculationMethods
impl Send for CalculationMethods
impl Sync for CalculationMethods
impl Unpin for CalculationMethods
impl UnwindSafe for CalculationMethods
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,