pub enum HtmlError {
Io(Error),
}Expand description
Rendering is in practice infallible — every text run is valid
UTF-8/HTML-escapable, and image/font handling reads from tables the
compile step already validated. The Result return shape is kept anyway
so the entry points are argument-for-argument (module signature, not
module fallibility) with rustyfi_pdf::render_pdf_with, and so a future
embedding step can surface a real error without a breaking signature
change.
Variants§
Trait Implementations§
Source§impl Error for HtmlError
impl Error for HtmlError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HtmlError
impl !UnwindSafe for HtmlError
impl Freeze for HtmlError
impl Send for HtmlError
impl Sync for HtmlError
impl Unpin for HtmlError
impl UnsafeUnpin 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