icu_time::zone::models

Trait TimeZoneModel

Source
pub trait TimeZoneModel: Sealed {
    type TimeZoneVariant: IntoOption<TimeZoneVariant> + Debug + Copy;
    type LocalTime: IntoOption<(Date<Iso>, Time)> + Debug + Copy;
}
Expand description

Trait encoding a particular data model for time zones.

🚫 This trait is sealed; it cannot be implemented by user code. If an API requests an item that implements this trait, please consider using a type from the implementors listed below.

Required Associated Types§

Source

type TimeZoneVariant: IntoOption<TimeZoneVariant> + Debug + Copy

The zone variant, if required for this time zone model.

Source

type LocalTime: IntoOption<(Date<Iso>, Time)> + Debug + Copy

The local time, if required for this time zone model.

Implementors§