pub enum HtmlError {
EmptyDocument,
CssParseError {
detail: String,
},
DataUriError {
detail: String,
},
TreeBuildError(InputValidationError),
}Expand description
Error produced during HTML → StyledTree conversion.
Variants§
EmptyDocument
The HTML document has no renderable body content.
CssParseError
A CSS value could not be parsed.
DataUriError
A data: URI could not be decoded.
TreeBuildError(InputValidationError)
The IR tree builder rejected the tree (validation failure).
Trait Implementations§
Source§impl Error for HtmlError
impl Error for HtmlError
1.30.0 · 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<InputValidationError> for HtmlError
impl From<InputValidationError> for HtmlError
Source§fn from(e: InputValidationError) -> Self
fn from(e: InputValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HtmlError
impl RefUnwindSafe for HtmlError
impl Send for HtmlError
impl Sync for HtmlError
impl Unpin for HtmlError
impl UnsafeUnpin for HtmlError
impl UnwindSafe for HtmlError
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