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(i32i32), 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(CssNumberConversionErrorf32), CouldNotParseCssUnsignedNumber(CssNumberConversionErrorf32), CouldNotParseDimensionLessNumber(f32), CouldNotParseDimension(f32CowRcStr<'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(i32i32)

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(CssNumberConversionErrorf32)

CouldNotParseCssUnsignedNumber(CssNumberConversionErrorf32)

CouldNotParseDimensionLessNumber(f32)

CouldNotParseDimension(f32CowRcStr<'i>)

UnsignedIntegersCanNotBeNegative(i32)

UnsignedIntegersCanNotBeFloats(f32)

UnknownFunctionInValueExpression(CowRcStr<'i>)

CssVariablesInVarExpressionsMustStartWithTwoDashes(CowRcStr<'i>)

SelectorParseErrorKind(SelectorParseErrorKind<'i>)

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.