pub enum TagValueSyntaxError {
InvalidFloatForDecimalFloatingPointValue,
InvalidUtf8(Utf8Error),
InvalidDecimalInteger(ParseNumberError),
UnexpectedEndOfLineWhileReadingAttributeName,
UnexpectedEmptyAttributeValue,
UnexpectedEndOfLineWithinQuotedString,
UnexpectedCharacterAfterQuotedString(u8),
UnexpectedWhitespaceInAttributeValue,
InvalidFloatInAttributeValue,
Generic(GenericSyntaxError),
}Expand description
A syntax error found while trying to parse a tag value.
Variants§
InvalidFloatForDecimalFloatingPointValue
Value was determined to be a decimal floating point but the data was not a valid float.
InvalidUtf8(Utf8Error)
Some part of the value could not be decoded as UTF-8.
InvalidDecimalInteger(ParseNumberError)
Value was determined to be a decimal integer but the data was not a valid number.
UnexpectedEndOfLineWhileReadingAttributeName
The line ended while reading an attribute name in an attribute list.
UnexpectedEmptyAttributeValue
No value existed for an associated attribute name in an attribute list.
UnexpectedEndOfLineWithinQuotedString
The line ended while parsing a quoted string in an attribute list.
UnexpectedCharacterAfterQuotedString(u8)
The quoted string ended and was not immediately followed by , or end of line.
UnexpectedWhitespaceInAttributeValue
An attribute value contained whitespace unexpectedly.
InvalidFloatInAttributeValue
A value was determined to be a floating point but the data was not a valid float.
Generic(GenericSyntaxError)
A generic syntax error that breaks parsing of the line.
Trait Implementations§
Source§impl Clone for TagValueSyntaxError
impl Clone for TagValueSyntaxError
Source§fn clone(&self) -> TagValueSyntaxError
fn clone(&self) -> TagValueSyntaxError
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 TagValueSyntaxError
impl Debug for TagValueSyntaxError
Source§impl Display for TagValueSyntaxError
impl Display for TagValueSyntaxError
Source§impl Error for TagValueSyntaxError
impl Error for TagValueSyntaxError
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<Error> for TagValueSyntaxError
impl From<Error> for TagValueSyntaxError
Source§impl From<GenericSyntaxError> for TagValueSyntaxError
impl From<GenericSyntaxError> for TagValueSyntaxError
Source§fn from(value: GenericSyntaxError) -> Self
fn from(value: GenericSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for TagValueSyntaxError
impl From<ParseFloatError> for TagValueSyntaxError
Source§fn from(_: ParseFloatError) -> Self
fn from(_: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<TagValueSyntaxError> for SyntaxError
impl From<TagValueSyntaxError> for SyntaxError
Source§fn from(value: TagValueSyntaxError) -> Self
fn from(value: TagValueSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for TagValueSyntaxError
impl From<Utf8Error> for TagValueSyntaxError
Source§impl PartialEq for TagValueSyntaxError
impl PartialEq for TagValueSyntaxError
impl Copy for TagValueSyntaxError
impl StructuralPartialEq for TagValueSyntaxError
Auto Trait Implementations§
impl Freeze for TagValueSyntaxError
impl RefUnwindSafe for TagValueSyntaxError
impl Send for TagValueSyntaxError
impl Sync for TagValueSyntaxError
impl Unpin for TagValueSyntaxError
impl UnsafeUnpin for TagValueSyntaxError
impl UnwindSafe for TagValueSyntaxError
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