Struct salah::Parameters
source · pub struct Parameters {
pub method: Method,
pub fajr_angle: f64,
pub maghrib_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,
pub rounding: Rounding,
pub shafaq: Shafaq,
}
Expand description
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: Method
§fajr_angle: f64
§maghrib_angle: f64
§isha_angle: f64
§isha_interval: i32
§madhab: Madhab
§high_latitude_rule: HighLatitudeRule
§adjustments: TimeAdjustment
§method_adjustments: TimeAdjustment
§rounding: Rounding
§shafaq: Shafaq
Implementations§
source§impl Parameters
impl Parameters
pub fn new(fajr_angle: f64, isha_angle: f64) -> Parameters
pub fn night_portions(&self) -> (f64, f64)
pub fn time_adjustments(&self, prayer: Prayer) -> i64
Trait Implementations§
source§impl Clone for Parameters
impl Clone for Parameters
source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Parameters
impl Debug for Parameters
source§impl PartialEq for Parameters
impl PartialEq for Parameters
source§fn eq(&self, other: &Parameters) -> bool
fn eq(&self, other: &Parameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more