pub enum PropertySyntaxParseError {
NoSyntax,
EmptyInput,
ExpectedPipeBetweenComponents,
InvalidNameStart,
InvalidName,
UnclosedDataTypeName,
UnexpectedEOF,
UnknownDataTypeName,
}
Expand description
Errors that can be encountered while parsing the @property rule’s syntax descriptor.
Variants§
NoSyntax
The syntax descriptor is required for the @property rule to be valid; if it’s missing, the @property rule is invalid.
https://drafts.css-houdini.org/css-properties-values-api-1/#ref-for-descdef-property-syntax②
EmptyInput
The string’s length was 0.
ExpectedPipeBetweenComponents
A non-whitespace, non-pipe character was fount after parsing a component.
InvalidNameStart
The start of an identifier was expected but not found.
https://drafts.csswg.org/css-syntax-3/#name-start-code-point
InvalidName
The name is not a valid <ident>
.
UnclosedDataTypeName
The data type name was not closed.
https://drafts.css-houdini.org/css-properties-values-api-1/#consume-data-type-name
UnexpectedEOF
The next byte was expected while parsing, but EOF was found instead.
UnknownDataTypeName
The data type is not a supported syntax component name.
https://drafts.css-houdini.org/css-properties-values-api-1/#supported-names
Trait Implementations§
Source§impl Clone for PropertySyntaxParseError
impl Clone for PropertySyntaxParseError
Source§fn clone(&self) -> PropertySyntaxParseError
fn clone(&self) -> PropertySyntaxParseError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more