pub trait CldrCalendar {
    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.

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.

Implementors§

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 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

source§

impl CldrCalendar for Gregorian