pub enum YearType {
Deficient = -1,
Regular = 0,
Complete = 1,
}
Expand description
The type of year it is
Variants§
Deficient = -1
חסרה: both Ḥeshvan and Kislev have 29 days
Regular = 0
כסדרה: Ḥeshvan has 29, Kislev has 30
Complete = 1
שלמה: both Ḥeshvan and Kislev have 30 days
Implementations§
source§impl YearType
impl YearType
sourcefn length_correction(self) -> i8
fn length_correction(self) -> i8
The length correction from a regular year (354/385)
sourcefn ḥeshvan_length(self) -> u8
fn ḥeshvan_length(self) -> u8
The length of Ḥeshvan
sourcefn kislev_length(self) -> u8
fn kislev_length(self) -> u8
The length correction of Kislev
Trait Implementations§
source§impl Ord for YearType
impl Ord for YearType
source§impl PartialEq for YearType
impl PartialEq for YearType
source§impl PartialOrd for YearType
impl PartialOrd for YearType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for YearType
impl Eq for YearType
impl StructuralPartialEq for YearType
Auto Trait Implementations§
impl Freeze for YearType
impl RefUnwindSafe for YearType
impl Send for YearType
impl Sync for YearType
impl Unpin for YearType
impl UnwindSafe for YearType
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