pub enum UseElevation {
No,
HanetzShkia,
All,
}Expand description
When to use elevation for zmanim calculations. See the documentation of zmanim_calculator for some discussion of this
Variants§
No
Never use elevation
HanetzShkia
Only use elevation directly for hanetz and shkia
All
Always use elevation
Implementations§
Source§impl UseElevation
impl UseElevation
Sourcepub fn to_bool(&self, hanetz_or_shkia: bool) -> bool
pub fn to_bool(&self, hanetz_or_shkia: bool) -> bool
Convert the UseElevation into a bool for
zmanim_calculator functions. The param
hanetz_or_shkia should be true if the calling function is
calculating hanetz or shkia, and false otherwise
Auto Trait Implementations§
impl Freeze for UseElevation
impl RefUnwindSafe for UseElevation
impl Send for UseElevation
impl Sync for UseElevation
impl Unpin for UseElevation
impl UnwindSafe for UseElevation
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