pub struct ZmanimCalculator { /* private fields */ }Expand description
Calculates zmanim for a Location on a specific Date.
Create one calculator for a location and date, then pass any ZmanLike
value to ZmanimCalculator::calculate.
Most callers should use the ready-made definitions in presets,
such as presets::ELEVATION_ADJUSTED_SUNRISE, instead of writing custom zman logic.
Implementations§
Source§impl ZmanimCalculator
impl ZmanimCalculator
Sourcepub fn new(location: Location, date: Date, config: CalculatorConfig) -> Self
pub fn new(location: Location, date: Date, config: CalculatorConfig) -> Self
Creates a calculator for the given location, date, and config.
Use this before calculating zmanim for that location and date.
Trait Implementations§
Source§impl Clone for ZmanimCalculator
impl Clone for ZmanimCalculator
Source§fn clone(&self) -> ZmanimCalculator
fn clone(&self) -> ZmanimCalculator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZmanimCalculator
impl Debug for ZmanimCalculator
Auto Trait Implementations§
impl Freeze for ZmanimCalculator
impl RefUnwindSafe for ZmanimCalculator
impl Send for ZmanimCalculator
impl Sync for ZmanimCalculator
impl Unpin for ZmanimCalculator
impl UnsafeUnpin for ZmanimCalculator
impl UnwindSafe for ZmanimCalculator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
Source§fn convert_into(self) -> T
fn convert_into(self) -> T
Infallibly converts a value of type
Self to a value of type T.Source§impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
Source§type Error = Infallible
type Error = Infallible
The type of an error that can occur during a conversion. Read more
Source§fn convert_try_from(value: F) -> Result<T, Infallible>
fn convert_try_from(value: F) -> Result<T, Infallible>
Fallibly converts a value of type
F to a value of type Self.Source§impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
Source§type Error = <T as ConvertTryFrom<F>>::Error
type Error = <T as ConvertTryFrom<F>>::Error
The type of an error that can occur during a conversion. Read more
Source§fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
fn convert_try_into(self) -> Result<T, <T as ConvertTryFrom<F>>::Error>
Fallibly converts a value of type
Self to a value of type T.