pub enum HtmlWriteError {
Io(Error),
UnsupportedNodeType(String),
InvalidStructure(String),
InvalidHtmlTag(String),
InvalidHtmlAttribute(String),
CustomNodeError(String),
}Expand description
Errors that can occur during HTML writing from AST nodes.
Variants§
Io(Error)
An underlying I/O error occurred.
UnsupportedNodeType(String)
A node type is not supported for HTML conversion (or not yet implemented).
InvalidStructure(String)
Invalid structure or content encountered during HTML conversion.
InvalidHtmlTag(String)
An invalid HTML tag name was encountered.
InvalidHtmlAttribute(String)
An invalid HTML attribute name was encountered.
CustomNodeError(String)
An error occurred while writing a custom node.
Implementations§
Source§impl HtmlWriteError
impl HtmlWriteError
Sourcepub fn into_write_error(self) -> WriteError
pub fn into_write_error(self) -> WriteError
Converts an HtmlWriteError into a WriteError.
Trait Implementations§
Source§impl Debug for HtmlWriteError
impl Debug for HtmlWriteError
Source§impl Display for HtmlWriteError
impl Display for HtmlWriteError
Source§impl Error for HtmlWriteError
impl Error for HtmlWriteError
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<Error> for HtmlWriteError
impl From<Error> for HtmlWriteError
Source§impl From<HtmlWriteError> for WriteError
impl From<HtmlWriteError> for WriteError
Source§fn from(err: CoreHtmlWriteError) -> Self
fn from(err: CoreHtmlWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HtmlWriteError
impl !RefUnwindSafe for HtmlWriteError
impl Send for HtmlWriteError
impl Sync for HtmlWriteError
impl Unpin for HtmlWriteError
impl !UnwindSafe for HtmlWriteError
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