pub struct TabularAlgorithm { /* private fields */ }Expand description
Hijri [Rules] for the Tabular Hijri Algorithm.
See TabularAlgorithmEpoch and TabularAlgorithmLeapYears for customization.
The most common version of these rules uses TabularAlgorithmEpoch::Friday and TabularAlgorithmLeapYears::TypeII.
When constructed with TabularAlgorithmLeapYears::TypeII, and either TabularAlgorithmEpoch::Friday or TabularAlgorithmEpoch::Thursday,
this corresponds to the "islamic-civil" and "islamic-tbla" CLDR calendars respectively.
Implementations§
Source§impl TabularAlgorithm
impl TabularAlgorithm
Sourcepub const fn new(
leap_years: TabularAlgorithmLeapYears,
epoch: TabularAlgorithmEpoch,
) -> TabularAlgorithm
pub const fn new( leap_years: TabularAlgorithmLeapYears, epoch: TabularAlgorithmEpoch, ) -> TabularAlgorithm
Construct a new TabularAlgorithm with the given leap year rule and epoch.
Trait Implementations§
Source§impl Clone for TabularAlgorithm
impl Clone for TabularAlgorithm
Source§fn clone(&self) -> TabularAlgorithm
fn clone(&self) -> TabularAlgorithm
Returns a duplicate 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 TabularAlgorithm
impl Debug for TabularAlgorithm
Source§impl FormattableHijriRules for TabularAlgorithm
impl FormattableHijriRules for TabularAlgorithm
Source§type YearNamesV1 = DatetimeNamesYearHijriV1
type YearNamesV1 = DatetimeNamesYearHijriV1
The data marker for loading year symbols for this calendar.
Source§type MonthNamesV1 = DatetimeNamesMonthHijriV1
type MonthNamesV1 = DatetimeNamesMonthHijriV1
The data marker for loading month symbols for this calendar.
Source§type SkeletaV1 = DatetimePatternsDateHijriV1
type SkeletaV1 = DatetimePatternsDateHijriV1
The data marker for loading skeleton patterns for this calendar.
Source§impl Hash for TabularAlgorithm
impl Hash for TabularAlgorithm
Source§impl Ord for TabularAlgorithm
impl Ord for TabularAlgorithm
Source§fn cmp(&self, other: &TabularAlgorithm) -> Ordering
fn cmp(&self, other: &TabularAlgorithm) -> 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 TabularAlgorithm
impl PartialEq for TabularAlgorithm
Source§impl PartialOrd for TabularAlgorithm
impl PartialOrd for TabularAlgorithm
impl Copy for TabularAlgorithm
impl Eq for TabularAlgorithm
impl StructuralPartialEq for TabularAlgorithm
impl UnstableSealed for TabularAlgorithm
Auto Trait Implementations§
impl Freeze for TabularAlgorithm
impl RefUnwindSafe for TabularAlgorithm
impl Send for TabularAlgorithm
impl Sync for TabularAlgorithm
impl Unpin for TabularAlgorithm
impl UnwindSafe for TabularAlgorithm
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> GetField<T> for Twhere
T: Copy + UnstableSealed,
impl<T> GetField<T> for Twhere
T: Copy + UnstableSealed,
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