Struct prayers::CalculationMethod[][src]

pub struct CalculationMethod { /* fields omitted */ }

Represents a calculation method (parameters)

Implementations

impl CalculationMethod[src]

pub fn new(
    imsak: Option<CalculationType>,
    fajr: f64,
    asr: Option<AsrJuristic>,
    maghrib: Option<CalculationType>,
    isha: CalculationType,
    midnight: Option<MidnightMethod>
) -> CalculationMethod
[src]

Initialize a CalculationMethod

pub fn from(fajr: f64, isha: CalculationType) -> CalculationMethod[src]

Create a CalculationMethod from fajr (angle, degree) and isha

Trait Implementations

impl Clone for CalculationMethod[src]

impl Copy for CalculationMethod[src]

impl Debug for CalculationMethod[src]

impl PartialEq<CalculationMethod> for CalculationMethod[src]

impl StructuralPartialEq for CalculationMethod[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.