pub enum GenericSyntaxError {
CarriageReturnWithoutLineFeed,
UnexpectedEndOfLine,
InvalidUtf8(Utf8Error),
}Expand description
A generic syntax error that breaks parsing of the line.
Variants§
CarriageReturnWithoutLineFeed
Carriage return (U+000D) was encountered and not followed by line feed (U+000A).
UnexpectedEndOfLine
The line ended unexpectedly (e.g. within a quoted string in an attribute list).
InvalidUtf8(Utf8Error)
Some part of the line could not be decoded as UTF-8.
Trait Implementations§
Source§impl Clone for GenericSyntaxError
impl Clone for GenericSyntaxError
Source§fn clone(&self) -> GenericSyntaxError
fn clone(&self) -> GenericSyntaxError
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 GenericSyntaxError
impl Debug for GenericSyntaxError
Source§impl Display for GenericSyntaxError
impl Display for GenericSyntaxError
Source§impl Error for GenericSyntaxError
impl Error for GenericSyntaxError
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<GenericSyntaxError> for DateTimeSyntaxError
Available on non-crate feature chrono only.
impl From<GenericSyntaxError> for DateTimeSyntaxError
Available on non-crate feature
chrono only.Source§fn from(value: GenericSyntaxError) -> Self
fn from(value: GenericSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<GenericSyntaxError> for SyntaxError
impl From<GenericSyntaxError> for SyntaxError
Source§fn from(value: GenericSyntaxError) -> Self
fn from(value: GenericSyntaxError) -> Self
Converts to this type from the input type.
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<GenericSyntaxError> for UnknownTagSyntaxError
impl From<GenericSyntaxError> for UnknownTagSyntaxError
Source§fn from(value: GenericSyntaxError) -> Self
fn from(value: GenericSyntaxError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GenericSyntaxError
impl PartialEq for GenericSyntaxError
impl Copy for GenericSyntaxError
impl StructuralPartialEq for GenericSyntaxError
Auto Trait Implementations§
impl Freeze for GenericSyntaxError
impl RefUnwindSafe for GenericSyntaxError
impl Send for GenericSyntaxError
impl Sync for GenericSyntaxError
impl Unpin for GenericSyntaxError
impl UnsafeUnpin for GenericSyntaxError
impl UnwindSafe for GenericSyntaxError
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