use {
crate::domain::properties::{CssWideKeyword, SpecifiedValue},
cssparser::ToCss,
std::fmt,
};
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum UnparsedPropertyValue {
CssWideKeyword(CssWideKeyword),
SpecifiedValue(SpecifiedValue),
}
impl ToCss for UnparsedPropertyValue {
#[inline(always)]
fn to_css<W: fmt::Write>(&self, dest: &mut W) -> fmt::Result {
use self::UnparsedPropertyValue::*;
match *self {
CssWideKeyword(cssWideKeyWord) => cssWideKeyWord.to_css(dest),
SpecifiedValue(ref specifiedValue) => specifiedValue.to_css(dest),
}
}
}