pub struct PackedHijriYearInfo(pub u16);Expand description
The struct containing compiled Hijri YearInfo
Bit structure
Bit:              F.........C  B.............0
Value:           [ start day ][ month lengths ]The start day is encoded as a signed offset from Self::mean_synodic_start_day. This number does not
appear to be less than 2, however we use all remaining bits for it in case of drift in the math.
The month lengths are stored as 1 = 30, 0 = 29 for each month including the leap month.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fieldsยง
ยง0: u16Trait Implementationsยง
Sourceยงimpl AsULE for PackedHijriYearInfo
 
impl AsULE for PackedHijriYearInfo
Sourceยงfn from_unaligned(
    unaligned: <PackedHijriYearInfo as AsULE>::ULE,
) -> PackedHijriYearInfo
 
fn from_unaligned( unaligned: <PackedHijriYearInfo as AsULE>::ULE, ) -> PackedHijriYearInfo
Sourceยงfn to_unaligned(self) -> <PackedHijriYearInfo as AsULE>::ULE
 
fn to_unaligned(self) -> <PackedHijriYearInfo as AsULE>::ULE
Sourceยงimpl Clone for PackedHijriYearInfo
 
impl Clone for PackedHijriYearInfo
Sourceยงfn clone(&self) -> PackedHijriYearInfo
 
fn clone(&self) -> PackedHijriYearInfo
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 PackedHijriYearInfo
 
impl Debug for PackedHijriYearInfo
Sourceยงimpl<'de> Deserialize<'de> for PackedHijriYearInfo
 
impl<'de> Deserialize<'de> for PackedHijriYearInfo
Sourceยงfn deserialize<__D>(
    __deserializer: __D,
) -> Result<PackedHijriYearInfo, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<PackedHijriYearInfo, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Hash for PackedHijriYearInfo
 
impl Hash for PackedHijriYearInfo
Sourceยงimpl Ord for PackedHijriYearInfo
 
impl Ord for PackedHijriYearInfo
Sourceยงfn cmp(&self, other: &PackedHijriYearInfo) -> Ordering
 
fn cmp(&self, other: &PackedHijriYearInfo) -> 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 PackedHijriYearInfo
 
impl PartialEq for PackedHijriYearInfo
Sourceยงimpl PartialOrd for PackedHijriYearInfo
 
impl PartialOrd for PackedHijriYearInfo
impl Copy for PackedHijriYearInfo
impl Eq for PackedHijriYearInfo
impl StructuralPartialEq for PackedHijriYearInfo
Auto Trait Implementationsยง
impl Freeze for PackedHijriYearInfo
impl RefUnwindSafe for PackedHijriYearInfo
impl Send for PackedHijriYearInfo
impl Sync for PackedHijriYearInfo
impl Unpin for PackedHijriYearInfo
impl UnwindSafe for PackedHijriYearInfo
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