Enum lol_html::errors::CommentTextError
source · pub enum CommentTextError {
CommentClosingSequence,
UnencodableCharacter,
}
Expand description
An error that occurs when invalid value is provided for the HTML comment text.
Variants§
CommentClosingSequence
The provided value contains the -->
character sequence that preemptively closes the comment.
UnencodableCharacter
The provided value contains a character that can’t be represented in the document’s encoding
.
Trait Implementations§
source§impl Clone for CommentTextError
impl Clone for CommentTextError
source§fn clone(&self) -> CommentTextError
fn clone(&self) -> CommentTextError
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 CommentTextError
impl Debug for CommentTextError
source§impl Display for CommentTextError
impl Display for CommentTextError
source§impl Error for CommentTextError
impl Error for CommentTextError
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<CommentTextError> for CommentTextError
impl PartialEq<CommentTextError> for CommentTextError
source§fn eq(&self, other: &CommentTextError) -> bool
fn eq(&self, other: &CommentTextError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CommentTextError
impl Eq for CommentTextError
impl StructuralEq for CommentTextError
impl StructuralPartialEq for CommentTextError
Auto Trait Implementations§
impl RefUnwindSafe for CommentTextError
impl Send for CommentTextError
impl Sync for CommentTextError
impl Unpin for CommentTextError
impl UnwindSafe for CommentTextError
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