pub enum ContextualParseError<'a> {
Show 19 variants
UnsupportedPropertyDeclaration(&'a str, ParseError<'a>, &'a [SelectorList<SelectorImpl>]),
UnsupportedPropertyDescriptor(&'a str, ParseError<'a>),
UnsupportedFontFaceDescriptor(&'a str, ParseError<'a>),
UnsupportedFontFeatureValuesDescriptor(&'a str, ParseError<'a>),
UnsupportedFontPaletteValuesDescriptor(&'a str, ParseError<'a>),
InvalidKeyframeRule(&'a str, ParseError<'a>),
InvalidFontFeatureValuesRule(&'a str, ParseError<'a>),
InvalidRule(&'a str, ParseError<'a>),
UnsupportedRule(&'a str, ParseError<'a>),
UnsupportedViewportDescriptorDeclaration(&'a str, ParseError<'a>),
UnsupportedCounterStyleDescriptorDeclaration(&'a str, ParseError<'a>),
InvalidCounterStyleWithoutSymbols(String),
InvalidCounterStyleNotEnoughSymbols(String),
InvalidCounterStyleWithoutAdditiveSymbols,
InvalidCounterStyleExtendsWithSymbols,
InvalidCounterStyleExtendsWithAdditiveSymbols,
InvalidMediaRule(&'a str, ParseError<'a>),
UnsupportedValue(&'a str, ParseError<'a>),
NeverMatchingHostSelector(String),
}
Expand description
Errors that can be encountered while parsing CSS.
Variants§
UnsupportedPropertyDeclaration(&'a str, ParseError<'a>, &'a [SelectorList<SelectorImpl>])
A property declaration was not recognized.
UnsupportedPropertyDescriptor(&'a str, ParseError<'a>)
A property descriptor was not recognized.
UnsupportedFontFaceDescriptor(&'a str, ParseError<'a>)
A font face descriptor was not recognized.
UnsupportedFontFeatureValuesDescriptor(&'a str, ParseError<'a>)
A font feature values descriptor was not recognized.
UnsupportedFontPaletteValuesDescriptor(&'a str, ParseError<'a>)
A font palette values descriptor was not recognized.
InvalidKeyframeRule(&'a str, ParseError<'a>)
A keyframe rule was not valid.
InvalidFontFeatureValuesRule(&'a str, ParseError<'a>)
A font feature values rule was not valid.
InvalidRule(&'a str, ParseError<'a>)
A rule was invalid for some reason.
UnsupportedRule(&'a str, ParseError<'a>)
A rule was not recognized.
UnsupportedViewportDescriptorDeclaration(&'a str, ParseError<'a>)
A viewport descriptor declaration was not recognized.
UnsupportedCounterStyleDescriptorDeclaration(&'a str, ParseError<'a>)
A counter style descriptor declaration was not recognized.
InvalidCounterStyleWithoutSymbols(String)
A counter style rule had no symbols.
InvalidCounterStyleNotEnoughSymbols(String)
A counter style rule had less than two symbols.
InvalidCounterStyleWithoutAdditiveSymbols
A counter style rule did not have additive-symbols.
InvalidCounterStyleExtendsWithSymbols
A counter style rule had extends with symbols.
InvalidCounterStyleExtendsWithAdditiveSymbols
A counter style rule had extends with additive-symbols.
InvalidMediaRule(&'a str, ParseError<'a>)
A media rule was invalid for some reason.
UnsupportedValue(&'a str, ParseError<'a>)
A value was not recognized.
NeverMatchingHostSelector(String)
A never-matching :host
selector was found.
Trait Implementations§
source§impl<'a> Debug for ContextualParseError<'a>
impl<'a> Debug for ContextualParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContextualParseError<'a>
impl<'a> RefUnwindSafe for ContextualParseError<'a>
impl<'a> !Send for ContextualParseError<'a>
impl<'a> !Sync for ContextualParseError<'a>
impl<'a> Unpin for ContextualParseError<'a>
impl<'a> UnwindSafe for ContextualParseError<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more