use crate::FontStyle;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum Style {
Normal,
Italic,
}
impl Style {
#[must_use]
pub const fn as_str(self) -> &'static str {
match self {
Self::Normal => "normal",
Self::Italic => "italic",
}
}
#[must_use]
pub const fn as_font_style(self) -> FontStyle {
match self {
Self::Normal => FontStyle::Normal,
Self::Italic => FontStyle::Italic,
}
}
}