Struct icu_calendar::hebrew::HebrewYearInfo
source · pub(crate) struct HebrewYearInfo {
keviyah: Keviyah,
prev_keviyah: Keviyah,
}
Fields§
§keviyah: Keviyah
§prev_keviyah: Keviyah
Implementations§
source§impl HebrewYearInfo
impl HebrewYearInfo
sourcefn compute(h_year: i32) -> Self
fn compute(h_year: i32) -> Self
Convenience method to compute for a given year. Don’t use this if you actually need a YearInfo that you want to call .new_year() on.
This can potentially be optimized with adjacent-year knowledge, but it’s complex
sourcefn compute_with_keviyah(keviyah: Keviyah, h_year: i32) -> Self
fn compute_with_keviyah(keviyah: Keviyah, h_year: i32) -> Self
Compute for a given year when the keviyah is already known
Trait Implementations§
source§impl Clone for HebrewYearInfo
impl Clone for HebrewYearInfo
source§fn clone(&self) -> HebrewYearInfo
fn clone(&self) -> HebrewYearInfo
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 HebrewYearInfo
impl Debug for HebrewYearInfo
source§impl Ord for HebrewYearInfo
impl Ord for HebrewYearInfo
source§fn cmp(&self, other: &HebrewYearInfo) -> Ordering
fn cmp(&self, other: &HebrewYearInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HebrewYearInfo
impl PartialEq for HebrewYearInfo
source§fn eq(&self, other: &HebrewYearInfo) -> bool
fn eq(&self, other: &HebrewYearInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HebrewYearInfo
impl PartialOrd for HebrewYearInfo
source§fn partial_cmp(&self, other: &HebrewYearInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &HebrewYearInfo) -> Option<Ordering>
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 moresource§impl PrecomputedDataSource<HebrewYearInfo> for ()
impl PrecomputedDataSource<HebrewYearInfo> for ()
source§fn load_or_compute_info(&self, h_year: i32) -> HebrewYearInfo
fn load_or_compute_info(&self, h_year: i32) -> HebrewYearInfo
Given a calendar year, load (or compute) the YearInfo for it Read more
impl Copy for HebrewYearInfo
impl Eq for HebrewYearInfo
impl StructuralPartialEq for HebrewYearInfo
Auto Trait Implementations§
impl Freeze for HebrewYearInfo
impl RefUnwindSafe for HebrewYearInfo
impl Send for HebrewYearInfo
impl Sync for HebrewYearInfo
impl Unpin for HebrewYearInfo
impl UnwindSafe for HebrewYearInfo
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