Enum lol_html::errors::TagNameError
source · pub enum TagNameError {
Empty,
InvalidFirstCharacter,
ForbiddenCharacter(char),
UnencodableCharacter,
}
Expand description
An error that occurs when invalid value is provided for the tag name.
Variants§
Empty
The provided value is empty.
InvalidFirstCharacter
The first character of the provided value is not an ASCII alphabetical character.
ForbiddenCharacter(char)
The provided value contains a character that is forbidden by the HTML grammar in tag names
(e.g. '>'
).
UnencodableCharacter
The provided value contains a character that can’t be represented in the document’s
encoding
.
Trait Implementations§
source§impl Clone for TagNameError
impl Clone for TagNameError
source§fn clone(&self) -> TagNameError
fn clone(&self) -> TagNameError
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 TagNameError
impl Debug for TagNameError
source§impl Display for TagNameError
impl Display for TagNameError
source§impl Error for TagNameError
impl Error for TagNameError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for TagNameError
impl PartialEq for TagNameError
source§fn eq(&self, other: &TagNameError) -> bool
fn eq(&self, other: &TagNameError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TagNameError
impl Eq for TagNameError
impl StructuralPartialEq for TagNameError
Auto Trait Implementations§
impl RefUnwindSafe for TagNameError
impl Send for TagNameError
impl Sync for TagNameError
impl Unpin for TagNameError
impl UnwindSafe for TagNameError
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