titan_html/class.rs
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
pub enum TagClass {
/// Just a class
Normal(String),
/// Style that needs processing.
Style(String),
}
impl TagClass {
pub fn text(value: String) -> TagClass {
Self::Normal(value)
}
pub fn styles(value: String) -> TagClass {
Self::Style(value)
}
}