icu_datetime::scaffold

Trait TimeMarkers

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

Source

type HourInput: IntoOption<Hour>

Marker for resolving the day-of-month input field.

Source

type MinuteInput: IntoOption<Minute>

Marker for resolving the day-of-week input field.

Source

type SecondInput: IntoOption<Second>

Marker for resolving the day-of-year input field.

Source

type NanosecondInput: IntoOption<Nanosecond>

Marker for resolving the any-calendar-kind input field.

Source

type TimeSkeletonPatternsV1: DataMarker<DataStruct = PackedPatterns<'static>>

Marker for loading time skeleton patterns.

Source

type DayPeriodNamesV1: DataMarker<DataStruct = LinearNames<'static>>

Marker for loading day period names.

Implementations on Foreign Types§

Source§

impl TimeMarkers for ()

Implementors§

Source§

impl TimeMarkers for TimeFieldSet

Source§

impl TimeMarkers for DET

Source§

impl TimeMarkers for DT

Source§

impl TimeMarkers for ET

Source§

impl TimeMarkers for MDET

Source§

impl TimeMarkers for MDT

Source§

impl TimeMarkers for T

Source§

impl TimeMarkers for YMDET

Source§

impl TimeMarkers for YMDT