pub enum HtmlError {
Io(Error),
}Expand description
Slice 1 never actually constructs this — every text run is valid
UTF-8/HTML-escapable, and no font/image embedding (the error-prone parts,
per the design doc’s later slices) happens yet. The Result return
shape is kept anyway so render_html_fixed is argument-for-argument (module
signature, not module fallibility) with render_pdf_with
(lib.rs:459), and so Slices 2/3 (SVG graphics, real fonts/@font-face,
image data-URIs) 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