Enum swc_css_parser::error::ErrorKind
source · [−]#[non_exhaustive]
pub enum ErrorKind {
Show 25 variants
Eof,
UnexpectedChar(Option<char>),
UnterminatedUrl,
InvalidEscape,
Expected(&'static str),
ExpectedButGot(&'static str),
ExpectedSelectorText,
UnterminatedBlockComment,
InvalidCharsetAtRule,
InvalidTypeSelector,
InvalidSelector,
InvalidDeclarationValue,
InvalidAttrSelectorName,
InvalidAttrSelectorMatcher,
InvalidAttrSelectorMatcherValue,
InvalidAttrSelectorModifier,
ExpectedNumber,
InvalidSupportQuery,
InvalidKeyframeSelector,
InvalidLayerBlockAtRule,
InvalidMediaQuery,
InvalidAnPlusBMicrosyntax,
InvalidCustomIdent(&'static str),
InvalidKeyframesName(&'static str),
UnknownAtRuleNotTerminated,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Eof
UnexpectedChar(Option<char>)
Lexing error.
UnterminatedUrl
Lexing error.
InvalidEscape
Lexing error
Expected(&'static str)
ExpectedButGot(&'static str)
ExpectedSelectorText
UnterminatedBlockComment
InvalidCharsetAtRule
InvalidTypeSelector
InvalidSelector
InvalidDeclarationValue
InvalidAttrSelectorName
InvalidAttrSelectorMatcher
InvalidAttrSelectorMatcherValue
InvalidAttrSelectorModifier
ExpectedNumber
InvalidSupportQuery
InvalidKeyframeSelector
InvalidLayerBlockAtRule
InvalidMediaQuery
InvalidAnPlusBMicrosyntax
InvalidCustomIdent(&'static str)
InvalidKeyframesName(&'static str)
UnknownAtRuleNotTerminated
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more