#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake), databake(path = icu_datetime::pattern))]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[allow(clippy::exhaustive_enums)] pub enum GenericPatternItem {
Placeholder(u8),
Literal(char),
}
impl From<u8> for GenericPatternItem {
fn from(input: u8) -> Self {
Self::Placeholder(input)
}
}
impl From<char> for GenericPatternItem {
fn from(input: char) -> Self {
Self::Literal(input)
}
}