pub struct HijriData<'data> {
    pub first_extended_year: i32,
    pub data: ZeroVec<'data, PackedHijriYearInfo>,
}Expand description
Cached/precompiled data for a certain range of years for a chinese-based calendar. Avoids the need to perform lunar calendar arithmetic for most calendrical operations.
Fields§
§first_extended_year: i32The extended year corresponding to the first data entry for this year
data: ZeroVec<'data, PackedHijriYearInfo>A list of precomputed data for each year beginning with first_extended_year
Trait Implementations§
Source§impl<'de, 'data> Deserialize<'de> for HijriData<'data>where
    'de: 'data,
 
impl<'de, 'data> Deserialize<'de> for HijriData<'data>where
    'de: 'data,
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<HijriData<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<HijriData<'data>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaybeAsVarULE for HijriData<'_>
 
impl MaybeAsVarULE for HijriData<'_>
Source§impl<'a> Yokeable<'a> for HijriData<'static>
 
impl<'a> Yokeable<'a> for HijriData<'static>
Source§type Output = HijriData<'a>
 
type Output = HijriData<'a>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>impl<'data> StructuralPartialEq for HijriData<'data>
Auto Trait Implementations§
impl<'data> Freeze for HijriData<'data>
impl<'data> RefUnwindSafe for HijriData<'data>
impl<'data> Send for HijriData<'data>
impl<'data> Sync for HijriData<'data>
impl<'data> Unpin for HijriData<'data>
impl<'data> UnwindSafe for HijriData<'data>
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§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more