Struct calendrical_calculations::hebrew_keviyah::YearInfo
source · pub struct YearInfo {
pub keviyah: Keviyah,
pub weeks_since_beharad: i64,
}
Expand description
Everything about a given year. Can be conveniently packed down into an i64 if needed.
Fields§
§keviyah: Keviyah
The Keviyah of the year
weeks_since_beharad: i64
How many full weeks have passed since the week of Beharad
Implementations§
source§impl YearInfo
impl YearInfo
sourcepub fn compute_for(h_year: i32) -> Self
pub fn compute_for(h_year: i32) -> Self
Compute the YearInfo for a given year
sourcepub fn year_containing_rd(date: RataDie) -> (Self, i32)
pub fn year_containing_rd(date: RataDie) -> (Self, i32)
Returns the YearInfo and h_year for the year containing date
This will clamp the R.D. such that the hebrew year is within range for i32
Trait Implementations§
source§impl PartialEq for YearInfo
impl PartialEq for YearInfo
impl Copy for YearInfo
impl Eq for YearInfo
impl StructuralPartialEq for YearInfo
Auto Trait Implementations§
impl Freeze for YearInfo
impl RefUnwindSafe for YearInfo
impl Send for YearInfo
impl Sync for YearInfo
impl Unpin for YearInfo
impl UnwindSafe for YearInfo
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