pub trait TimeMarkers: UnstableSealed {
type HourInput: IntoOption<Hour>;
type MinuteInput: IntoOption<Minute>;
type SecondInput: IntoOption<Second>;
type NanosecondInput: IntoOption<Nanosecond>;
type TimeSkeletonPatternsV1: DataMarker<DataStruct = PackedPatterns<'static>>;
type DayPeriodNamesV1: DataMarker<DataStruct = LinearNames<'static>>;
}
Expand description
A trait associating types for time formatting (input types and data markers).
This is a sealed trait implemented on field set markers.
🚧 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 unless you are prepared for things to occasionally break.
Required Associated Types§
Sourcetype HourInput: IntoOption<Hour>
type HourInput: IntoOption<Hour>
Marker for resolving the day-of-month input field.
Sourcetype MinuteInput: IntoOption<Minute>
type MinuteInput: IntoOption<Minute>
Marker for resolving the day-of-week input field.
Sourcetype SecondInput: IntoOption<Second>
type SecondInput: IntoOption<Second>
Marker for resolving the day-of-year input field.
Sourcetype NanosecondInput: IntoOption<Nanosecond>
type NanosecondInput: IntoOption<Nanosecond>
Marker for resolving the any-calendar-kind input field.
Sourcetype TimeSkeletonPatternsV1: DataMarker<DataStruct = PackedPatterns<'static>>
type TimeSkeletonPatternsV1: DataMarker<DataStruct = PackedPatterns<'static>>
Marker for loading time skeleton patterns.
Sourcetype DayPeriodNamesV1: DataMarker<DataStruct = LinearNames<'static>>
type DayPeriodNamesV1: DataMarker<DataStruct = LinearNames<'static>>
Marker for loading day period names.