Trait icu_datetime::CldrCalendar
source ยท pub trait CldrCalendar: InternalCldrCalendar {
type DateSymbolsV1Marker: KeyedDataMarker<Yokeable = DateSymbolsV1<'static>>;
type DateLengthsV1Marker: KeyedDataMarker<Yokeable = DateLengthsV1<'static>>;
type YearNamesV1Marker: KeyedDataMarker<Yokeable = YearNamesV1<'static>>;
type MonthNamesV1Marker: KeyedDataMarker<Yokeable = MonthNamesV1<'static>>;
type DatePatternV1Marker: KeyedDataMarker<Yokeable = DatePatternV1<'static>>;
type SkeletaV1Marker: KeyedDataMarker<Yokeable = PackedSkeletonDataV1<'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ยง
sourcetype DateSymbolsV1Marker: KeyedDataMarker<Yokeable = DateSymbolsV1<'static>>
type DateSymbolsV1Marker: KeyedDataMarker<Yokeable = DateSymbolsV1<'static>>
The data marker for loading symbols for this calendar.
sourcetype DateLengthsV1Marker: KeyedDataMarker<Yokeable = DateLengthsV1<'static>>
type DateLengthsV1Marker: KeyedDataMarker<Yokeable = DateLengthsV1<'static>>
The data marker for loading length-patterns for this calendar.
sourcetype YearNamesV1Marker: KeyedDataMarker<Yokeable = YearNamesV1<'static>>
type YearNamesV1Marker: KeyedDataMarker<Yokeable = YearNamesV1<'static>>
The data marker for loading year symbols for this calendar.
sourcetype MonthNamesV1Marker: KeyedDataMarker<Yokeable = MonthNamesV1<'static>>
type MonthNamesV1Marker: KeyedDataMarker<Yokeable = MonthNamesV1<'static>>
The data marker for loading month symbols for this calendar.
sourcetype DatePatternV1Marker: KeyedDataMarker<Yokeable = DatePatternV1<'static>>
type DatePatternV1Marker: KeyedDataMarker<Yokeable = DatePatternV1<'static>>
The data marker for loading a single date pattern for this calendar.
sourcetype SkeletaV1Marker: KeyedDataMarker<Yokeable = PackedSkeletonDataV1<'static>>
type SkeletaV1Marker: KeyedDataMarker<Yokeable = PackedSkeletonDataV1<'static>>
The data marker for loading skeleton patterns for this calendar.
Required Associated Constantsยง
sourceconst DEFAULT_BCP_47_IDENTIFIER: Value
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ยง
sourcefn is_identifier_allowed_for_calendar(value: &Value) -> bool
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