CustomFastingRule

Trait CustomFastingRule 

Source
pub trait CustomFastingRule:
    Debug
    + Send
    + Sync {
    // Required method
    fn evaluate(
        &self,
        date: NaiveDate,
        hijri_year: usize,
        hijri_month: usize,
        hijri_day: usize,
    ) -> Option<(FastingStatus, FastingType)>;
}
Expand description

Custom rule trait.

Required Methods§

Source

fn evaluate( &self, date: NaiveDate, hijri_year: usize, hijri_month: usize, hijri_day: usize, ) -> Option<(FastingStatus, FastingType)>

Implementors§