Enum CustomParseError

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'i> From<CustomParseError<'i>> for ParseError<'i, CustomParseError<'i>>

Source§

fn from(error: CustomParseError<'_>) -> ParseError<'_, CustomParseError<'_>>

Converts to this type from the input type.
Source§

impl<'i> From<SelectorParseErrorKind<'i>> for CustomParseError<'i>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.