#[derive(Default, Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub struct DoesNotHaveImportance;
impl ToCss for DoesNotHaveImportance
{
#[inline(always)]
fn to_css<W: fmt::Write>(&self, _dest: &mut W) -> fmt::Result
{
Ok(())
}
}
impl HasImportance for DoesNotHaveImportance
{
#[inline(always)]
fn validateParsedImportance<'i>(importance: Importance) -> Result<Self, ParseError<'i, CustomParseError<'i>>>
{
if importance.isImportant()
{
Err(ParseError::Custom(CustomParseError::ImportantIsNotAllowedInKeyframePropertyDeclarationValues))
}
else
{
Ok(DoesNotHaveImportance)
}
}
#[inline(always)]
fn isImportant(&self) -> bool
{
false
}
}