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 const fn to_bool(&self, hanetz_or_shkia: bool) -> bool
pub const 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
Trait Implementations§
Source§impl Clone for UseElevation
impl Clone for UseElevation
Source§fn clone(&self) -> UseElevation
fn clone(&self) -> UseElevation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UseElevation
impl Debug for UseElevation
Source§impl PartialEq for UseElevation
impl PartialEq for UseElevation
impl Copy for UseElevation
impl Eq for UseElevation
impl StructuralPartialEq for UseElevation
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