Enum icu_calendar::islamic::IslamicYearLength
source · enum IslamicYearLength {
L355,
L354,
L353,
}
Expand description
Compact representation of the length of an Islamic year.
Variants§
L355
Long (355-day) Islamic year
L354
Short (354-day) Islamic year
L353
Unexpectedly Short (353-day) Islamic year
It is probably a bug when this year length is returned. See: https://github.com/unicode-org/icu4x/issues/4930
Implementations§
Trait Implementations§
source§impl Clone for IslamicYearLength
impl Clone for IslamicYearLength
source§fn clone(&self) -> IslamicYearLength
fn clone(&self) -> IslamicYearLength
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 IslamicYearLength
impl Debug for IslamicYearLength
source§impl Default for IslamicYearLength
impl Default for IslamicYearLength
source§impl Hash for IslamicYearLength
impl Hash for IslamicYearLength
source§impl Ord for IslamicYearLength
impl Ord for IslamicYearLength
source§fn cmp(&self, other: &IslamicYearLength) -> Ordering
fn cmp(&self, other: &IslamicYearLength) -> 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 IslamicYearLength
impl PartialEq for IslamicYearLength
source§fn eq(&self, other: &IslamicYearLength) -> bool
fn eq(&self, other: &IslamicYearLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IslamicYearLength
impl PartialOrd for IslamicYearLength
source§fn partial_cmp(&self, other: &IslamicYearLength) -> Option<Ordering>
fn partial_cmp(&self, other: &IslamicYearLength) -> 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 moreimpl Copy for IslamicYearLength
impl Eq for IslamicYearLength
impl StructuralPartialEq for IslamicYearLength
Auto Trait Implementations§
impl Freeze for IslamicYearLength
impl RefUnwindSafe for IslamicYearLength
impl Send for IslamicYearLength
impl Sync for IslamicYearLength
impl Unpin for IslamicYearLength
impl UnwindSafe for IslamicYearLength
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