pub enum AttributeListParsingError {
EndOfLineWhileReadingAttributeName,
UnexpectedCharacterInAttributeName,
EmptyAttributeName,
EmptyUnquotedValue,
UnexpectedCharacterInAttributeValue,
UnexpectedCharacterAfterQuoteEnd,
EndOfLineWhileReadingQuotedValue,
InvalidUtf8(Utf8Error),
}Expand description
An error found while parsing an attribute list.
Variants§
EndOfLineWhileReadingAttributeName
The line ended while reading an attribute name (before we found =).
UnexpectedCharacterInAttributeName
There was an unexpected character (" or ,) in the attribute name.
EmptyAttributeName
The attribute name was empty (no characters between start and =).
EmptyUnquotedValue
The unquoted attribute value was empty (no characters between start and , or end of line).
UnexpectedCharacterInAttributeValue
Unexpected character in unquoted attribute value (= or " after initial index).
UnexpectedCharacterAfterQuoteEnd
Unexpected character occurring after quote end and before ,.
EndOfLineWhileReadingQuotedValue
The line ended while reading a quoted string value.
InvalidUtf8(Utf8Error)
There was an error when trying to convert to UTF-8.
Trait Implementations§
Source§impl Clone for AttributeListParsingError
impl Clone for AttributeListParsingError
Source§fn clone(&self) -> AttributeListParsingError
fn clone(&self) -> AttributeListParsingError
Returns a duplicate 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 AttributeListParsingError
impl Debug for AttributeListParsingError
Source§impl Display for AttributeListParsingError
impl Display for AttributeListParsingError
Source§impl Error for AttributeListParsingError
impl Error for AttributeListParsingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AttributeListParsingError> for ParseTagValueError
impl From<AttributeListParsingError> for ParseTagValueError
Source§fn from(value: AttributeListParsingError) -> Self
fn from(value: AttributeListParsingError) -> Self
Converts to this type from the input type.
Source§impl From<AttributeListParsingError> for ValidationError
impl From<AttributeListParsingError> for ValidationError
Source§fn from(value: AttributeListParsingError) -> Self
fn from(value: AttributeListParsingError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for AttributeListParsingError
impl From<Utf8Error> for AttributeListParsingError
impl Copy for AttributeListParsingError
impl StructuralPartialEq for AttributeListParsingError
Auto Trait Implementations§
impl Freeze for AttributeListParsingError
impl RefUnwindSafe for AttributeListParsingError
impl Send for AttributeListParsingError
impl Sync for AttributeListParsingError
impl Unpin for AttributeListParsingError
impl UnwindSafe for AttributeListParsingError
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