Struct icu_calendar::islamic::IslamicYearInfo
source · pub(crate) struct IslamicYearInfo {
packed_data: PackedIslamicYearInfo,
prev_year_length: IslamicYearLength,
}
Fields§
§packed_data: PackedIslamicYearInfo
§prev_year_length: IslamicYearLength
Implementations§
source§impl IslamicYearInfo
impl IslamicYearInfo
pub(crate) const LONG_YEAR_LEN: u16 = 355u16
const SHORT_YEAR_LEN: u16 = 354u16
pub(crate) fn new( prev_packed: PackedIslamicYearInfo, this_packed: PackedIslamicYearInfo, extended_year: i32, ) -> (Self, i32)
fn compute<IB: IslamicBasedMarker>(extended_year: i32) -> Self
sourcefn new_year<IB: IslamicBasedMarker>(self, extended_year: i32) -> RataDie
fn new_year<IB: IslamicBasedMarker>(self, extended_year: i32) -> RataDie
Get the new year R.D. given the extended year that this yearinfo is for
sourcefn rd_for<IB: IslamicBasedMarker>(
self,
extended_year: i32,
month: u8,
day: u8,
) -> RataDie
fn rd_for<IB: IslamicBasedMarker>( self, extended_year: i32, month: u8, day: u8, ) -> RataDie
Get the date’s R.D. given (y, m, d) in this info’s year
fn days_in_prev_year(self) -> u16
Trait Implementations§
source§impl Clone for IslamicYearInfo
impl Clone for IslamicYearInfo
source§fn clone(&self) -> IslamicYearInfo
fn clone(&self) -> IslamicYearInfo
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 IslamicYearInfo
impl Debug for IslamicYearInfo
source§impl Hash for IslamicYearInfo
impl Hash for IslamicYearInfo
source§impl Ord for IslamicYearInfo
impl Ord for IslamicYearInfo
source§fn cmp(&self, other: &IslamicYearInfo) -> Ordering
fn cmp(&self, other: &IslamicYearInfo) -> 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 IslamicYearInfo
impl PartialEq for IslamicYearInfo
source§impl PartialOrd for IslamicYearInfo
impl PartialOrd for IslamicYearInfo
source§impl<'b, IB: IslamicBasedMarker> PrecomputedDataSource<IslamicYearInfo> for IslamicPrecomputedData<'b, IB>
impl<'b, IB: IslamicBasedMarker> PrecomputedDataSource<IslamicYearInfo> for IslamicPrecomputedData<'b, IB>
source§fn load_or_compute_info(&self, extended_year: i32) -> IslamicYearInfo
fn load_or_compute_info(&self, extended_year: i32) -> IslamicYearInfo
Given a calendar year, load (or compute) the YearInfo for it Read more
impl Copy for IslamicYearInfo
impl Eq for IslamicYearInfo
impl StructuralPartialEq for IslamicYearInfo
Auto Trait Implementations§
impl Freeze for IslamicYearInfo
impl RefUnwindSafe for IslamicYearInfo
impl Send for IslamicYearInfo
impl Sync for IslamicYearInfo
impl Unpin for IslamicYearInfo
impl UnwindSafe for IslamicYearInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)