Enum lol_html::errors::AttributeNameError
source · pub enum AttributeNameError {
Empty,
ForbiddenCharacter(char),
UnencodableCharacter,
}
Expand description
An error that occurs when invalid value is provided for the attribute name.
Variants§
Empty
The provided value is empty.
ForbiddenCharacter(char)
The provided value contains a character that is forbidden by the HTML grammar in attribute
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 AttributeNameError
impl Clone for AttributeNameError
source§fn clone(&self) -> AttributeNameError
fn clone(&self) -> AttributeNameError
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 AttributeNameError
impl Debug for AttributeNameError
source§impl Display for AttributeNameError
impl Display for AttributeNameError
source§impl Error for AttributeNameError
impl Error for AttributeNameError
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<AttributeNameError> for AttributeNameError
impl PartialEq<AttributeNameError> for AttributeNameError
source§fn eq(&self, other: &AttributeNameError) -> bool
fn eq(&self, other: &AttributeNameError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AttributeNameError
impl Eq for AttributeNameError
impl StructuralEq for AttributeNameError
impl StructuralPartialEq for AttributeNameError
Auto Trait Implementations§
impl RefUnwindSafe for AttributeNameError
impl Send for AttributeNameError
impl Sync for AttributeNameError
impl Unpin for AttributeNameError
impl UnwindSafe for AttributeNameError
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