Struct prayers::PrayerManager [−][src]
The prayer manager
Example
use prayers::*; let prayer_manager = PrayerManager::new(CalculationMethods::MWL, Some(HightLatMethods::NightMiddle)); let a_date = Utc.ymd(2021, 4, 12); let a_house = Coordinates(38.8976763, -77.036529, 18.0); let prayers = prayer_manager.get_times(a_date, a_house);
Implementations
impl PrayerManager
[src]
pub fn new(
method: CalculationMethods,
high_lats: Option<HightLatMethods>
) -> PrayerManager
[src]
method: CalculationMethods,
high_lats: Option<HightLatMethods>
) -> PrayerManager
Initialize a PrayerManager
pub fn get_calculation_method(
calculation_method: CalculationMethods
) -> CalculationMethod
[src]
calculation_method: CalculationMethods
) -> CalculationMethod
Get calculation parameters from a CalculationMethods
pub fn get_times(&self, date: Date<Utc>, coords: Coordinates) -> PrayerTimes
[src]
Get prayer times for a specific UTC date and coordinates
Example
use prayers::*; let prayer_manager = PrayerManager::new(CalculationMethods::MWL, Some(HightLatMethods::NightMiddle)); let a_date = Utc.ymd(2021, 4, 12); let a_house = Coordinates(38.8976763, -77.036529, 18.0); let prayers = prayer_manager.get_times(a_date, a_house);
Trait Implementations
impl Clone for PrayerManager
[src]
fn clone(&self) -> PrayerManager
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrayerManager
[src]
impl Debug for PrayerManager
[src]
impl PartialEq<PrayerManager> for PrayerManager
[src]
fn eq(&self, other: &PrayerManager) -> bool
[src]
fn ne(&self, other: &PrayerManager) -> bool
[src]
impl StructuralPartialEq for PrayerManager
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrayerManager
impl Send for PrayerManager
impl Sync for PrayerManager
impl Unpin for PrayerManager
impl UnwindSafe for PrayerManager
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>,