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 moresource§impl Debug for PropertySyntaxParseError
impl Debug for PropertySyntaxParseError
source§impl PartialEq for PropertySyntaxParseError
impl PartialEq for PropertySyntaxParseError
impl StructuralPartialEq for PropertySyntaxParseError
Auto Trait Implementations§
impl Freeze for PropertySyntaxParseError
impl RefUnwindSafe for PropertySyntaxParseError
impl Send for PropertySyntaxParseError
impl Sync for PropertySyntaxParseError
impl Unpin for PropertySyntaxParseError
impl UnwindSafe for PropertySyntaxParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)