pub struct ZmanEntry {
pub name: &'static str,
pub kind: ZmanKind,
pub compute: fn(&ComplexZmanimCalendar) -> Option<ZmanValue>,
}Expand description
A single entry in the ALL_ZMANIM registry, describing one zman
accessor by name and providing a function to compute it.
Fields§
§name: &'static strThe name of the accessor method, e.g. "sof_zman_shema_gra".
kind: ZmanKindWhether this zman is an instant or a duration.
compute: fn(&ComplexZmanimCalendar) -> Option<ZmanValue>Computes the zman for the given calendar, returning None when the
underlying solar event does not occur (e.g. in polar regions).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZmanEntry
impl RefUnwindSafe for ZmanEntry
impl Send for ZmanEntry
impl Sync for ZmanEntry
impl Unpin for ZmanEntry
impl UnsafeUnpin for ZmanEntry
impl UnwindSafe for ZmanEntry
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