Enum swc_css_parser::error::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
Show 22 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,
InvalidMediaQuery,
InvalidAnPlusBMicrosyntax,
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)
Tuple Fields
0: &'static str
ExpectedButGot(&'static str)
Tuple Fields
0: &'static str
ExpectedSelectorText
UnterminatedBlockComment
InvalidCharsetAtRule
InvalidTypeSelector
InvalidSelector
InvalidDeclarationValue
InvalidAttrSelectorName
InvalidAttrSelectorMatcher
InvalidAttrSelectorMatcherValue
InvalidAttrSelectorModifier
ExpectedNumber
InvalidSupportQuery
InvalidKeyframeSelector
InvalidMediaQuery
InvalidAnPlusBMicrosyntax
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