pub enum PropertySyntaxParseError {
EmptyInput,
ExpectedPipeBetweenComponents,
InvalidNameStart,
InvalidName,
UnclosedDataTypeName,
UnexpectedEOF,
UnknownDataTypeName,
}
Expand description
Errors that can be encountered while parsing the @property rule’s syntax descriptor.
Variants§
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PropertySyntaxParseError
impl Debug for PropertySyntaxParseError
source§impl PartialEq for PropertySyntaxParseError
impl PartialEq for PropertySyntaxParseError
source§fn eq(&self, other: &PropertySyntaxParseError) -> bool
fn eq(&self, other: &PropertySyntaxParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
Mutably borrows from an owned value. Read more