pub enum HtmlErrorKind {
UnterminatedTag,
UnterminatedAttributeValue,
UnterminatedBrace,
StrayCloseBrace,
UnterminatedComment,
ForbiddenElement(String),
BadAttributeName(String),
BadTagName,
}Variants§
UnterminatedTag
A <… that never reaches its >.
UnterminatedAttributeValue
A quoted attribute value that never closes.
UnterminatedBrace
A { with no matching }.
StrayCloseBrace
A } with no { before it.
UnterminatedComment
A <!-- that never reaches -->.
ForbiddenElement(String)
<script>, <style> or a doctype inside a view.
BadAttributeName(String)
An attribute with no name (<p =x>), or a name containing a forbidden character.
BadTagName
< followed by something that cannot start a tag (<1>, < a>, <>).
Trait Implementations§
Source§impl Clone for HtmlErrorKind
impl Clone for HtmlErrorKind
Source§fn clone(&self) -> HtmlErrorKind
fn clone(&self) -> HtmlErrorKind
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 HtmlErrorKind
impl Debug for HtmlErrorKind
Source§impl PartialEq for HtmlErrorKind
impl PartialEq for HtmlErrorKind
impl Eq for HtmlErrorKind
impl StructuralPartialEq for HtmlErrorKind
Auto Trait Implementations§
impl Freeze for HtmlErrorKind
impl RefUnwindSafe for HtmlErrorKind
impl Send for HtmlErrorKind
impl Sync for HtmlErrorKind
impl Unpin for HtmlErrorKind
impl UnsafeUnpin for HtmlErrorKind
impl UnwindSafe for HtmlErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.