Struct salah::PrayerSchedule
source · pub struct PrayerSchedule { /* private fields */ }
Expand description
A builder for the PrayerTimes struct.
Implementations§
source§impl PrayerSchedule
impl PrayerSchedule
pub fn new() -> PrayerSchedule
pub fn on<'a>(&'a mut self, date: NaiveDate) -> &'a mut PrayerSchedule
pub fn for_location<'a>( &'a mut self, location: Coordinates ) -> &'a mut PrayerSchedule
pub fn with_configuration<'a>( &'a mut self, params: Parameters ) -> &'a mut PrayerSchedule
pub fn calculate(&self) -> Result<PrayerTimes, String>
Auto Trait Implementations§
impl Freeze for PrayerSchedule
impl RefUnwindSafe for PrayerSchedule
impl Send for PrayerSchedule
impl Sync for PrayerSchedule
impl Unpin for PrayerSchedule
impl UnwindSafe for PrayerSchedule
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