pub struct PrayTime { /* private fields */ }Expand description
Main PrayTime calculator
Implementations§
Source§impl PrayTime
impl PrayTime
Sourcepub fn new(method: &str) -> Self
pub fn new(method: &str) -> Self
Create a new PrayTime instance with the specified calculation method
Sourcepub fn set_method(&mut self, method: &str) -> &mut Self
pub fn set_method(&mut self, method: &str) -> &mut Self
Set calculation method
Sourcepub fn location(&mut self, latitude: f64, longitude: f64) -> &mut Self
pub fn location(&mut self, latitude: f64, longitude: f64) -> &mut Self
Set location coordinates
Sourcepub fn utc_offset(&mut self, minutes: i32) -> &mut Self
pub fn utc_offset(&mut self, minutes: i32) -> &mut Self
Set UTC offset in minutes
Sourcepub fn format(&mut self, format: TimeFormat) -> &mut Self
pub fn format(&mut self, format: TimeFormat) -> &mut Self
Set time format
Sourcepub fn rounding(&mut self, method: RoundingMethod) -> &mut Self
pub fn rounding(&mut self, method: RoundingMethod) -> &mut Self
Set rounding method
Sourcepub fn high_latitude_rule(&mut self, rule: HighLatitudeRule) -> &mut Self
pub fn high_latitude_rule(&mut self, rule: HighLatitudeRule) -> &mut Self
Set high latitude adjustment rule
Sourcepub fn asr_method(&mut self, method: AsrMethod) -> &mut Self
pub fn asr_method(&mut self, method: AsrMethod) -> &mut Self
Set ASR calculation method
Sourcepub fn get_times(&mut self, date: Option<NaiveDate>) -> PrayerTimes
pub fn get_times(&mut self, date: Option<NaiveDate>) -> PrayerTimes
Get prayer times for a specific date
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrayTime
impl RefUnwindSafe for PrayTime
impl Send for PrayTime
impl Sync for PrayTime
impl Unpin for PrayTime
impl UnwindSafe for PrayTime
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