Trait icu_datetime::CldrCalendar

source ยท
pub trait CldrCalendar: InternalCldrCalendar {
    type DateSymbolsV1Marker: KeyedDataMarker<Yokeable = DateSymbolsV1<'static>>;
    type DateLengthsV1Marker: KeyedDataMarker<Yokeable = DateLengthsV1<'static>>;

    const DEFAULT_BCP_47_IDENTIFIER: Value;

    // Provided method
    fn is_identifier_allowed_for_calendar(value: &Value) -> bool { ... }
}
Expand description

A calendar that can be found in CLDR

New implementors of this trait will likely also wish to modify get_era_code_map() in the CLDR transformer to support any new era maps.

๐Ÿšง This trait is considered unstable; it may change at any time, in breaking or non-breaking ways, including in SemVer minor releases. Do not implement this trait in userland.

Required Associated Typesยง

source

type DateSymbolsV1Marker: KeyedDataMarker<Yokeable = DateSymbolsV1<'static>>

The data marker for loading symbols for this calendar.

source

type DateLengthsV1Marker: KeyedDataMarker<Yokeable = DateLengthsV1<'static>>

The data marker for loading length-patterns for this calendar.

Required Associated Constantsยง

source

const DEFAULT_BCP_47_IDENTIFIER: Value

The Unicode BCP 47 identifier for the calendarโ€™s skeleton If multiple BCP 47 identifiers work, this should be the default one when no others are provided

If is_identifier_allowed_for_calendar() is set, this only is used for loading skeletons data

Provided Methodsยง

source

fn is_identifier_allowed_for_calendar(value: &Value) -> bool

Checks if a given BCP 47 identifier is allowed to be used with this calendar

By default, just checks against DEFAULT_BCP_47_IDENTIFIER

Object Safetyยง

This trait is not object safe.

Implementations on Foreign Typesยง

sourceยง

impl CldrCalendar for Buddhist

sourceยง

impl CldrCalendar for Chinese

sourceยง

impl CldrCalendar for Coptic

sourceยง

impl CldrCalendar for Dangi

sourceยง

impl CldrCalendar for Ethiopian

sourceยง

impl CldrCalendar for Gregorian

sourceยง

impl CldrCalendar for Hebrew

sourceยง

impl CldrCalendar for Indian

sourceยง

impl CldrCalendar for IslamicCivil

sourceยง

impl CldrCalendar for IslamicObservational

sourceยง

impl CldrCalendar for IslamicTabular

sourceยง

impl CldrCalendar for IslamicUmmAlQura

sourceยง

impl CldrCalendar for Japanese

sourceยง

impl CldrCalendar for JapaneseExtended

sourceยง

impl CldrCalendar for Persian

sourceยง

impl CldrCalendar for Roc

Implementorsยง