Expand description
Islamic prayer times for Rust with high-latitude and polar-region support.
§Example
use mawaqit::prelude::*;
let brussels = Coordinates::new(50.85, 4.35);
let date = NaiveDate::from_ymd_opt(2026, 6, 21).expect("invalid date");
let mut params = Configuration::with(Method::MuslimWorldLeague, Madhab::Shafi);
params.high_latitude_rule = HighLatitudeRule::Recommended;
let prayers = PrayerSchedule::new()
.on(date)
.for_location(brussels)
.with_configuration(params)
.calculate()
.expect("prayer times calculation failed");Modules§
- prelude
- A convenience module appropriate for glob imports (
use mawaqit::prelude::*;).
Structs§
- Adjustment
- Builder for
TimeAdjustment. - Configuration
- Builder for
Parameters. - Coordinates
- The latitude and longitude associated with a location. Both latitude and longitude values are specified in degrees.
- Date
Time - ISO 8601 combined date and time with time zone.
- Local
- The local timescale.
- Naive
Date - ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.
- Parameters
- Settings that determine prayer time calculation: angles, method, madhab, high-latitude rule, rounding, polar fallback, and adjustments.
- Prayer
Schedule - A builder for
PrayerTimes. - Prayer
Times - Times of all prayers for a given date, location, and configuration.
- Time
Adjustment - Time adjustment for all prayer times. The value is specified in minutes and can be either positive or negative.
- Utc
- The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
Enums§
- High
Latitude Rule - Rule for approximating Fajr and Isha at high latitudes
- Madhab
- Setting for the Asr prayer time. For Hanafi madhab, the Asr is a bit later than that of the Shafi madhab.
- Method
- Provides preset configuration for a few authorities for calculating prayer times.
- Polar
Fallback - Strategy for computing prayer times when the sun never rises or sets (polar day/night above ~66.5° N/S).
- Prayer
- Names of all obligatory prayers, sunrise, and Qiyam.
- Rounding
- Rounding rule applied to computed prayer times.
- Shafaq
- Shafaq is the twilight in the sky. Different madhabs define the appearance of twilight differently. These values are used by the MoonsightingCommittee method for different ways to calculate Isha.
- Weekday
- The day of week.
Traits§
- Datelike
- The common set of methods for date component.
- Stride
- Convenience methods for the DateTime type.
- Time
Zone - The time zone.
- Timelike
- The common set of methods for time component.