enum MetonicCycleType {
LMinusOne,
LPlusOne,
LPlusMinusOne,
Leap,
}
Expand description
“Metonic cycle” in general refers to any 19-year repeating pattern used by lunisolar calendars. The Hebrew calendar uses one where years 3, 6, 8, 11, 14, 17, 19 are leap years.
The Hebrew calendar further categorizes regular years as whether they come before/after/or between leap years, and this is used when performing lookups.
Variants§
LMinusOne
Before a leap year (2, 5, 10, 13, 16)
LPlusOne
After a leap year (1, 4, 9, 12, 15)
LPlusMinusOne
Between leap years (7. 18)
Leap
Leap year (3, 6, 8, 11, 14, 17, 19)
Implementations§
source§impl MetonicCycleType
impl MetonicCycleType
fn for_h_year(h_year: i32) -> Self
Trait Implementations§
source§impl Clone for MetonicCycleType
impl Clone for MetonicCycleType
source§fn clone(&self) -> MetonicCycleType
fn clone(&self) -> MetonicCycleType
Returns a copy 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 MetonicCycleType
impl Debug for MetonicCycleType
source§impl PartialEq for MetonicCycleType
impl PartialEq for MetonicCycleType
source§fn eq(&self, other: &MetonicCycleType) -> bool
fn eq(&self, other: &MetonicCycleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MetonicCycleType
impl Eq for MetonicCycleType
impl StructuralPartialEq for MetonicCycleType
Auto Trait Implementations§
impl Freeze for MetonicCycleType
impl RefUnwindSafe for MetonicCycleType
impl Send for MetonicCycleType
impl Sync for MetonicCycleType
impl Unpin for MetonicCycleType
impl UnwindSafe for MetonicCycleType
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