#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Era {
Short,
Long,
Narrow,
}
impl Era {
pub const VALUES: &[Self] = &[Self::Short, Self::Long, Self::Narrow];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Year {
Numeric,
TwoDigit,
}
impl Year {
pub const VALUES: &[Self] = &[Self::Numeric, Self::TwoDigit];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Month {
Numeric,
TwoDigit,
Short,
Long,
Narrow,
}
impl Month {
pub const VALUES: &[Self] = &[
Self::Numeric,
Self::TwoDigit,
Self::Short,
Self::Long,
Self::Narrow,
];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Day {
Numeric,
TwoDigit,
}
impl Day {
pub const VALUES: &[Self] = &[Self::Numeric, Self::TwoDigit];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Weekday {
Short,
Long,
Narrow,
}
impl Weekday {
pub const VALUES: &[Self] = &[Self::Short, Self::Long, Self::Narrow];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum DayPeriod {
FlexibleShort,
FlexibleLong,
FlexibleNarrow,
}
impl DayPeriod {
pub const VALUES: &[Self] = &[
Self::FlexibleShort,
Self::FlexibleLong,
Self::FlexibleNarrow,
];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum HourKind {
Clock12,
Clock24,
}
impl HourKind {
pub const VALUES: &[Self] = &[Self::Clock12, Self::Clock24];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Hour {
Numeric,
TwoDigit,
}
impl Hour {
pub const VALUES: &[Self] = &[Self::Numeric, Self::TwoDigit];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Minute {
Numeric,
TwoDigit,
}
impl Minute {
pub const VALUES: &[Self] = &[Self::Numeric, Self::TwoDigit];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum Second {
Numeric,
TwoDigit,
}
impl Second {
pub const VALUES: &[Self] = &[Self::Numeric, Self::TwoDigit];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum FractionalSecondDigits {
F1,
F2,
F3,
}
impl FractionalSecondDigits {
pub const VALUES: &[Self] = &[Self::F1, Self::F2, Self::F3];
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum TimeZoneName {
ShortSpecific,
LongSpecific,
ShortOffset,
LongOffset,
ShortGeneric,
LongGeneric,
}
impl TimeZoneName {
pub const VALUES: &[Self] = &[
Self::ShortSpecific,
Self::LongSpecific,
Self::ShortOffset,
Self::LongOffset,
Self::ShortGeneric,
Self::LongGeneric,
];
}