pub enum CustomParseError<'i> {
Show 69 variants
UnsupportedAtRule(CowRcStr<'i>),
InvalidParseState,
UnexpectedCharsetAtRule,
UnsupportedCounterStyleProperty(CowRcStr<'i>),
InvalidCounterStyleWithoutSymbols(System),
InvalidCounterStyleNotEnoughSymbols(System),
InvalidCounterStyleWithoutAdditiveSymbols,
InvalidCounterStyleExtendsWithSymbols,
InvalidCounterStyleExtendsWithAdditiveSymbols,
CounterStyleSystemIsNotKnown(CowRcStr<'i>),
CounterStyleSymbolsCanNotBeEmpty,
CounterStyleRangesCanNotHaveStartGreaterThanEnd(i32, i32),
CounterStylePadMinLengthCanNotBeNegative(i32),
CounterStyleAdditiveTupleWeightCanNotBeNegative(i32),
CounterStyleAdditiveSymbolsCanNotHaveASecondWeightEqualToOrGreaterThanTheFirst,
DecimalOrDiscIsNotAllowedInACounterStyleIdentInACounterStyleAtRule,
NoneIsNotAllowedInACounterStyleIdent,
DocumentAtRuleUrlMatchingFunctionWasInvalid,
BadUrlInDeclarationValueBlock(CowRcStr<'i>),
BadStringInDeclarationValueBlock(CowRcStr<'i>),
UnbalancedCloseParenthesisInDeclarationValueBlock,
UnbalancedCloseSquareBracketInDeclarationValueBlock,
UnbalancedCloseCurlyBracketInDeclarationValueBlock,
UnsupportedFontFaceProperty(CowRcStr<'i>),
InvalidFontLanguageOverrideIdentifier(CowRcStr<'i>),
InvalidFontLanguageOverrideOpenTypeLanguageTag(CowRcStr<'i>),
FontFeatureSettingOpenTypeFeatureTagMustBeFourCharacters(CowRcStr<'i>),
FontFeatureSettingOpenTypeFeatureTagMustBePrintableAscii(CowRcStr<'i>),
FontFeatureSettingIfNotAnIntegerMustBeOnOrOff(CowRcStr<'i>),
FontFeatureSettingIntegerMustBePositive(i32),
FontFaceAtRuleFontWeightWasNotAValidIdentifierOrInteger,
FontFaceAtRuleFontFamilyCanNotBeGeneric,
AtRuleImportMustBeBeforeAnyRuleExceptAtRuleCharset,
KeyframePercentageWasNotBetweenZeroAndOneInclusive(f32),
ImportantIsNotAllowedInKeyframePropertyDeclarationValues,
UnexpectedTokenWhenParsingZoom(Token<'i>),
InvalidMediaType(CowRcStr<'i>),
DeprecatedMediaType(CowRcStr<'i>),
UnrecognisedMediaType(CowRcStr<'i>),
DeprecatedMediaQueryExpression(CowRcStr<'i>),
UnsupportedMediaQueryExpression(CowRcStr<'i>),
RatioNumeratorCanNotBeNegativeOrZero(i32),
RatioDivisorCanNotBeNegativeOrZero(i32),
MediaGridMustBeEitherZeroOrOne(i32),
MediaTransform3DMustBeEitherZeroOrOne(i32),
MediaTypeIsOnlyOptionalIfQualifiedIsNotSpecified,
AtRuleNamespaceMustBeBeforeAnyRuleExceptAtRuleCharsetAndAtRuleImport,
UnexpectedTokenForAtNamespaceRuleNamespaceValue(Token<'i>),
InvalidPageSelectorPseudoClass(CowRcStr<'i>),
FontRelativeLengthsAreNotAllowedInAPageAtRule,
ViewportLengthsAreNotAllowedInAPageAtRule,
InvalidSupportsCondition(CowRcStr<'i>),
UnexpectedViewportProperty(CowRcStr<'i>),
SpecificSelectorParseError(Box<SelectorParseError<'i>>),
ThereAreNoSelectors,
SelectorIsInvalidInContext(String),
UnsupportedPseudoClassOrElement(String),
NonTreeStructuralPseudoClassScopeIsObsoleteAsOfFirefox55,
UnexpectedCustomIdent(CowRcStr<'i>),
CustomIdentWasExcluded(CowRcStr<'i>),
CouldNotParseCssSignedNumber(CssNumberConversionError, f32),
CouldNotParseCssUnsignedNumber(CssNumberConversionError, f32),
CouldNotParseDimensionLessNumber(f32),
CouldNotParseDimension(f32, CowRcStr<'i>),
UnsignedIntegersCanNotBeNegative(i32),
UnsignedIntegersCanNotBeFloats(f32),
UnknownFunctionInValueExpression(CowRcStr<'i>),
CssVariablesInVarExpressionsMustStartWithTwoDashes(CowRcStr<'i>),
SelectorParseErrorKind(SelectorParseErrorKind<'i>),
}
Expand description
Represents all the things that can go wrong when parsing.
Variants§
UnsupportedAtRule(CowRcStr<'i>)
InvalidParseState
UnexpectedCharsetAtRule
UnsupportedCounterStyleProperty(CowRcStr<'i>)
InvalidCounterStyleWithoutSymbols(System)
InvalidCounterStyleNotEnoughSymbols(System)
InvalidCounterStyleWithoutAdditiveSymbols
InvalidCounterStyleExtendsWithSymbols
InvalidCounterStyleExtendsWithAdditiveSymbols
CounterStyleSystemIsNotKnown(CowRcStr<'i>)
CounterStyleSymbolsCanNotBeEmpty
CounterStyleRangesCanNotHaveStartGreaterThanEnd(i32, i32)
CounterStylePadMinLengthCanNotBeNegative(i32)
CounterStyleAdditiveTupleWeightCanNotBeNegative(i32)
CounterStyleAdditiveSymbolsCanNotHaveASecondWeightEqualToOrGreaterThanTheFirst
DecimalOrDiscIsNotAllowedInACounterStyleIdentInACounterStyleAtRule
NoneIsNotAllowedInACounterStyleIdent
DocumentAtRuleUrlMatchingFunctionWasInvalid
BadUrlInDeclarationValueBlock(CowRcStr<'i>)
BadStringInDeclarationValueBlock(CowRcStr<'i>)
UnbalancedCloseParenthesisInDeclarationValueBlock
UnbalancedCloseSquareBracketInDeclarationValueBlock
UnbalancedCloseCurlyBracketInDeclarationValueBlock
UnsupportedFontFaceProperty(CowRcStr<'i>)
InvalidFontLanguageOverrideIdentifier(CowRcStr<'i>)
InvalidFontLanguageOverrideOpenTypeLanguageTag(CowRcStr<'i>)
FontFeatureSettingOpenTypeFeatureTagMustBeFourCharacters(CowRcStr<'i>)
FontFeatureSettingOpenTypeFeatureTagMustBePrintableAscii(CowRcStr<'i>)
FontFeatureSettingIfNotAnIntegerMustBeOnOrOff(CowRcStr<'i>)
FontFeatureSettingIntegerMustBePositive(i32)
FontFaceAtRuleFontWeightWasNotAValidIdentifierOrInteger
FontFaceAtRuleFontFamilyCanNotBeGeneric
AtRuleImportMustBeBeforeAnyRuleExceptAtRuleCharset
KeyframePercentageWasNotBetweenZeroAndOneInclusive(f32)
ImportantIsNotAllowedInKeyframePropertyDeclarationValues
UnexpectedTokenWhenParsingZoom(Token<'i>)
InvalidMediaType(CowRcStr<'i>)
DeprecatedMediaType(CowRcStr<'i>)
UnrecognisedMediaType(CowRcStr<'i>)
DeprecatedMediaQueryExpression(CowRcStr<'i>)
UnsupportedMediaQueryExpression(CowRcStr<'i>)
RatioNumeratorCanNotBeNegativeOrZero(i32)
RatioDivisorCanNotBeNegativeOrZero(i32)
MediaGridMustBeEitherZeroOrOne(i32)
MediaTransform3DMustBeEitherZeroOrOne(i32)
MediaTypeIsOnlyOptionalIfQualifiedIsNotSpecified
AtRuleNamespaceMustBeBeforeAnyRuleExceptAtRuleCharsetAndAtRuleImport
UnexpectedTokenForAtNamespaceRuleNamespaceValue(Token<'i>)
InvalidPageSelectorPseudoClass(CowRcStr<'i>)
FontRelativeLengthsAreNotAllowedInAPageAtRule
ViewportLengthsAreNotAllowedInAPageAtRule
InvalidSupportsCondition(CowRcStr<'i>)
UnexpectedViewportProperty(CowRcStr<'i>)
SpecificSelectorParseError(Box<SelectorParseError<'i>>)
ThereAreNoSelectors
SelectorIsInvalidInContext(String)
UnsupportedPseudoClassOrElement(String)
NonTreeStructuralPseudoClassScopeIsObsoleteAsOfFirefox55
UnexpectedCustomIdent(CowRcStr<'i>)
CustomIdentWasExcluded(CowRcStr<'i>)
CouldNotParseCssSignedNumber(CssNumberConversionError, f32)
CouldNotParseCssUnsignedNumber(CssNumberConversionError, f32)
CouldNotParseDimensionLessNumber(f32)
CouldNotParseDimension(f32, CowRcStr<'i>)
UnsignedIntegersCanNotBeNegative(i32)
UnsignedIntegersCanNotBeFloats(f32)
UnknownFunctionInValueExpression(CowRcStr<'i>)
CssVariablesInVarExpressionsMustStartWithTwoDashes(CowRcStr<'i>)
SelectorParseErrorKind(SelectorParseErrorKind<'i>)
Trait Implementations§
Source§impl<'i> Debug for CustomParseError<'i>
impl<'i> Debug for CustomParseError<'i>
Source§impl<'i> From<CustomParseError<'i>> for ParseError<'i, CustomParseError<'i>>
impl<'i> From<CustomParseError<'i>> for ParseError<'i, CustomParseError<'i>>
Source§fn from(error: CustomParseError<'_>) -> ParseError<'_, CustomParseError<'_>>
fn from(error: CustomParseError<'_>) -> ParseError<'_, CustomParseError<'_>>
Converts to this type from the input type.
Source§impl<'i> From<SelectorParseErrorKind<'i>> for CustomParseError<'i>
impl<'i> From<SelectorParseErrorKind<'i>> for CustomParseError<'i>
Source§fn from(error: SelectorParseErrorKind<'_>) -> CustomParseError<'_>
fn from(error: SelectorParseErrorKind<'_>) -> CustomParseError<'_>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'i> Freeze for CustomParseError<'i>
impl<'i> RefUnwindSafe for CustomParseError<'i>
impl<'i> !Send for CustomParseError<'i>
impl<'i> !Sync for CustomParseError<'i>
impl<'i> Unpin for CustomParseError<'i>
impl<'i> UnwindSafe for CustomParseError<'i>
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
Mutably borrows from an owned value. Read more