[][src]Struct salah::Parameters

pub struct Parameters {
    pub method: Method,
    pub fajr_angle: f64,
    pub isha_angle: f64,
    pub isha_interval: i32,
    pub madhab: Madhab,
    pub high_latitude_rule: HighLatitudeRule,
    pub adjustments: TimeAdjustment,
    pub method_adjustments: TimeAdjustment,
}

Settings that are used for determining the the correct prayer time.

It is recommended to use Configuration to build the parameters that are need.

Fields

method: Methodfajr_angle: f64isha_angle: f64isha_interval: i32madhab: Madhabhigh_latitude_rule: HighLatitudeRuleadjustments: TimeAdjustmentmethod_adjustments: TimeAdjustment

Implementations

impl Parameters[src]

pub fn new(fajr_angle: f64, isha_angle: f64) -> Parameters[src]

pub fn night_portions(&self) -> (f64, f64)[src]

pub fn time_adjustments(&self, prayer: Prayer) -> i64[src]

Trait Implementations

impl Clone for Parameters[src]

impl Copy for Parameters[src]

impl Debug for Parameters[src]

impl PartialEq<Parameters> for Parameters[src]

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